| | |
Index was out of range. Must be non-negative and less than the size of the collection
Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Nov 2008
Posts: 1
Reputation:
Solved Threads: 0
Index was out of range. Must be non-negative and less than the size of the collection
0
#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 5: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
- 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!!!
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol ajax alltypeofvideos asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer c# c#gridviewcolumn cac checkbox class commonfunctions compatible confirmationcodegeneration content contenttype countryselector courier dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deployment development dgv dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv formatdecimal forms formview gridview gudi homeedition iis javascript jquery listbox menu microsoft mouse mssql nameisnotdeclared news opera panelmasterpagebuttoncontrols problem redirect registration relationaldatabases reportemail schoolproject security serializesmo.table sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visual-studio visualstudio web webapplications webarchitecture webdevelopemnt webdevelopment webprogramming webservice youareanotmemberofthedebuggerusers





