Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


DataList Problem

 
Logged in as: Guest
arrSession:exec spGetSession 2,4,28788
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP.NET >> DataList Problem
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 DataList Problem - 12/8/2005 4:54:45 AM   
  Mindmesh

 

Posts: 71
Score: 0
Joined: 11/23/2004
From:
Status: offline
 When I try to compile this code:

      
I get the following error:

Exception Details: System.IndexOutOfRangeException: Index 0 is not non-negative and below total rows count.

Source Error:


Line 16: runat="server">
Line 17: <ItemTemplate>
Line 18: <asp:LinkButton id=btnManuf runat="server" Text='<%# DataBinder.Eval(DsVehicles, "Tables[Vehicle].DefaultView.[0].Manuf_Name") %>'>
Line 19: </asp:LinkButton>
Line 20:<asp:LinkButton id=btnModel runat="server" Text='<%# DataBinder.Eval(DsVehicles, "Tables[Vehicle].DefaultView.[0].Model") %>'>

Any idea what may be causing this issue? Thanks.
 
 
Post #: 1
 
 RE: DataList Problem - 12/8/2005 9:13:05 AM   
  Snipah


Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
Hiya,

I found the following through Google:

http://www.webdeveloper.com/forum/archive/index.php/t-47166.html

Please review...

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to Mindmesh)
 
 
Post #: 2
 
 RE: DataList Problem - 12/8/2005 10:40:52 AM   
  Mindmesh

 

Posts: 71
Score: 0
Joined: 11/23/2004
From:
Status: offline
Snipah thanks for the help, but I already had the fill statement. This is a tough one.. Sad part is I don't know if my teacher knows enough about VB to help me fix it. ;o)

(in reply to Snipah)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP.NET >> DataList Problem Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts