datalist sample problem

Discussion in 'ASP .Net Web Controls' started by Michael Johnson Jr., Dec 6, 2003.

  1. Code: http://www.vkarlsen.no/pastebin/ViewPaste.aspx?id=1628

    I am following the example just like they had it, except I didn't use any
    SQL.

    The problem i am having is when I call:

    String title = DataList1.DataKeys[E.Item.ItemIndex].ToString();

    (Line 86)

    I get an Index out of Range error.
     
    Michael Johnson Jr., Dec 6, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nevyn Twyll
    Replies:
    8
    Views:
    1,940
  2. Jake
    Replies:
    0
    Views:
    592
  3. Tim Chase
    Replies:
    0
    Views:
    87
    Tim Chase
    Feb 16, 2014
  4. Terry Reedy
    Replies:
    0
    Views:
    97
    Terry Reedy
    Feb 16, 2014
  5. Tim Chase
    Replies:
    0
    Views:
    99
    Tim Chase
    Feb 16, 2014
Loading...

Share This Page