Index was out of range. Must be non-negative and less than the size of the collection
Please support our ASP.NET advertiser: DiscountASP.NET – 3 Months Free on ASP.NET 3.5/2.0 Web Hosting
![]() |
•
•
Posts: 1
Reputation:
Solved Threads: 0
Index was out of range. Must be non-negative and less than the size of the collection
#1
Nov 12th, 2008
asp.net Syntax (Toggle Plain Text)
singlecourse = Session("singlecourse") ename.Text = singlecourse.CourseName Session("testname") = singlecourse.CourseName Seclist = que.GetSection(singlecourse.CourseCode) Qnolist = que.GetQnumber(singlecourse.CourseCode) Session("totsec") = Seclist Session("totqno") = Qnolist Session("queslist") = queslist t1.Text = Profile.Ttime pos = InStr(t1.Text, ":") h1.Value = t1.Text.Substring(0, pos - 1) 'h2.Value = t1.Text.Substring(pos, 2) h2.Value = Right(t1.Text, t1.Text.Length - pos) End If Else ViewState("qno") = CType(Session("summary"), Integer) Session("summary") = "" summbtn.Visible = True queslist = Session("queslist") ename.Text = Session("testname") t1.Text = Session("etime") pos = InStr(t1.Text, ":") h1.Value = t1.Text.Substring(0, pos - 1) h2.Value = t1.Text.Substring(pos, 2) End If
Parameter name: index) aquestion.Text = queslist.Item(ViewState("qno")).Question
Last edited by peter_budo : Nov 12th, 2008 at 4:55 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
![]() |
Similar Threads
Other Threads in the ASP.NET Forum
- command line parameters part 2! (VB.NET)
- Bindingnavigator,Datagridview,textboxes (VB.NET)
- Index was out of range. Must be non-negative and less than the size of the collection (VB.NET)
- C# .NET Gridview (C#)
- Index was out of range. Must be non-negative and less than the size of the collection (VB.NET)
- Source Code that don't work? (Java)
- Paging in dataGrid (ASP.NET)
- not-a-virusadware (Viruses, Spyware and other Nasties)
Other Threads in the ASP.NET Forum
- Previous Thread: ASP.net - Flash Postback problem : Please Help
- Next Thread: Uploading Files!!!
•
•
•
•
Views: 1383 | Replies: 0 | Currently Viewing: 1 (0 members and 1 guests)





Linear Mode