Server Error in '/' Application.

Index was outside the bounds of the array.

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.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:


Line 410:        string[] p = str.Split('|');
Line 411:        coursename.InnerText = "E-School For " + p[0];
Line 412:        coursecatogary.InnerText = p[1];
Line 413:       // lnkSchool.HRef = p[2];
Line 414:        coursenamee = p[0];

Source File: c:\inetpub\vhosts\edutry.com\httpdocs\Classes.aspx.cs    Line: 412

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   Courses.bindcoursename(String cod) in c:\inetpub\vhosts\edutry.com\httpdocs\Classes.aspx.cs:412
   Courses.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\edutry.com\httpdocs\Classes.aspx.cs:42
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3930.0