Server Error in '/' Application.

Index 0 is either negative or above rows count.

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 0 is either negative or above rows count.

Source Error:


Line 4:  	void Page_Load(object Sender, EventArgs E) 
Line 5:  	{
Line 6:  		Output.Text = WebMain();
Line 7:  	}
Line 8:  </script>

Source File: e:\Source\fsppm\web\default.aspx    Line: 6

Stack Trace:


[IndexOutOfRangeException: Index 0 is either negative or above rows count.]
   System.Data.DataView.GetRow(Int32 index) +1901414
   Hainhan.Web.CourseSchedule(Int32 ID) +132
   Hainhan.Web.Course() +4244
   Hainhan.Web.WebMain() +1737
   ASP.default_aspx.Page_Load(Object Sender, EventArgs E) in e:\Source\fsppm\web\default.aspx:6
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


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