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 105:			Sql = Sql & " Left join Class_T1 T1 on CM.ClassM_No = T1.ClassM_No "
Line 106:			Sql = Sql & " Where 1 = 1 "
Line 107:			Sql = Sql & " 	And ClassM_Type2 = '" & Teach_Ary(18, 1) & "' "
Line 108:			Sql = Sql & "	And CM.DSP_STATUS = 'Y' "
Line 109:			Sql = Sql & "	And CONVERT(char(8), getdate(), 112) between ClassT1_DateUp And ClassT1_DateDn "

Source File: D:\internet\www.fluxwave.com.tw\web_root\class.aspx    Line: 107

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   System.Array.InternalGetReference(Void* elemRef, Int32 rank, Int32* pIndices) +0
   System.Array.GetValue(Int32 index1, Int32 index2) +114
   Microsoft.VisualBasic.CompilerServices.Container.GetArrayValue(Object[] Indices) +267
   Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateIndexGet(Object Instance, Object[] Arguments, String[] ArgumentNames) +30
   ASP.class_aspx.Page_Load(Object Src, EventArgs E) in D:\internet\www.fluxwave.com.tw\web_root\class.aspx:107
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8810; ASP.NET Version:2.0.50727.8762