startIndex cannot be larger than length of string. Parameter name: startIndex
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string. Parameter name: startIndex
Source Error:
Line 25: string Semester = AppLib.GetQueryStringParameterValue_String("Sem");
Line 26:
Line 27: Year = Convert.ToInt32( Session.Substring(3, 2));
Line 28: FillLabels(Class, Session,Semester);
Line 29: ShowBcom(Class, Session, Semester);