Hi
I m new biew to asp.net.
I wanna use Adrotator in my page which shows the images from database
(Means the url of image is stored in database and images is saved in a folder)
For it i simply retrived all image url in dataset and bind it to the adrotator but it not worked properly
Dim sql As String
sql = "select ImageURL,Naviga teURL,Alternate Text,Keyword from image"
ad = New SqlDataAdapter( Sql, cnn)
ad.SelectComman d.CommandType = CommandType.Tex t
Me.ds = New DataSet
Me.ad.Fill(ds)
Me.cnn.Close()
Me.AdRotator1.D ataSource = Me.ds.Tables(0)
Me.AdRotator1.D ataBind()
The Image folder is placed in root folder where all the web page is placed
and the image url is like this : -
~/Add_Image/middle.gif
It shows dynamic alternatetext each time when i refresh the page but don't show image
Show me the currect way to do it Plz
Thanks with anticipation
I m new biew to asp.net.
I wanna use Adrotator in my page which shows the images from database
(Means the url of image is stored in database and images is saved in a folder)
For it i simply retrived all image url in dataset and bind it to the adrotator but it not worked properly
Dim sql As String
sql = "select ImageURL,Naviga teURL,Alternate Text,Keyword from image"
ad = New SqlDataAdapter( Sql, cnn)
ad.SelectComman d.CommandType = CommandType.Tex t
Me.ds = New DataSet
Me.ad.Fill(ds)
Me.cnn.Close()
Me.AdRotator1.D ataSource = Me.ds.Tables(0)
Me.AdRotator1.D ataBind()
The Image folder is placed in root folder where all the web page is placed
and the image url is like this : -
~/Add_Image/middle.gif
It shows dynamic alternatetext each time when i refresh the page but don't show image
Show me the currect way to do it Plz
Thanks with anticipation
Comment