problems with datalist example

Discussion in 'ASP .Net Web Controls' started by john doe Jr, Dec 5, 2003.

  1. john doe Jr

    john doe Jr Guest

    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.
     
    john doe Jr, Dec 5, 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. Gönen EREN

    Datalist in Datalist How?

    Gönen EREN, Aug 22, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    425
    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,571
    acko bogicevic
    Nov 11, 2003
  3. Nevyn Twyll
    Replies:
    8
    Views:
    1,972
  4. Richard Lionheart
    Replies:
    3
    Views:
    516
    Richard Lionheart
    Sep 5, 2005
  5. Sam Roberts
    Replies:
    15
    Views:
    321
    Sam Roberts
    Feb 7, 2005
Loading...

Share This Page