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. Advertisements

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. Gönen EREN

    Datalist in Datalist How?

    Gönen EREN, Aug 22, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    556
    Gönen EREN
    Aug 22, 2003
  2. acko bogicevic

    DataList in DataList

    acko bogicevic, Nov 10, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    5,852
    acko bogicevic
    Nov 11, 2003
  3. Steve Lloyd
    Replies:
    1
    Views:
    819
    Rick Spiewak
    May 26, 2004
  4. Nevyn Twyll
    Replies:
    8
    Views:
    2,341
  5. Patrick Olurotimi Ige
    Replies:
    0
    Views:
    1,578
    Patrick Olurotimi Ige
    Jun 22, 2005
  6. Jake
    Replies:
    0
    Views:
    748
  7. Will

    Problem with DataList within DataList

    Will, Oct 10, 2007, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    387
    Walter Wang [MSFT]
    Oct 18, 2007
  8. Tim Chase
    Replies:
    0
    Views:
    238
    Tim Chase
    Feb 16, 2014
Loading...