Adrotator In Asp.net(Vb)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ~V~
    New Member
    • Sep 2007
    • 2

    Adrotator In Asp.net(Vb)

    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
    Last edited by jhardman; Feb 13 '08, 05:46 PM. Reason: moved to .Net forum. ASP forum is for "classic" ASP
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    Originally posted by ~V~
    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
    Hi ~V~

    Just so as you know, this is a classic ASP forum and you should really ask your .NET questions in the .NET forum. You will recieve much better technical help with your problem there.

    With regard to your problem...what is displayed where you are expecting the image to be? Is there the red cross box?

    Dr B

    Comment

    Working...