'/' 應用程式中發生伺服器錯誤。

並未將物件參考設定為物件的執行個體。

描述: 在執行目前 Web 要求的過程中發生未處理的例外狀況。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外狀況詳細資訊: System.NullReferenceException: 並未將物件參考設定為物件的執行個體。

原始程式錯誤:


行 24:     Sub Page_Load(Sender As Object,e As EventArgs)
行 25:     
行 26:         getSendNum = Request("SendNum").Trim()
行 27:         If getSendNum = "1" Then
行 28:            getUnitName = "大學部1年級"

原始程式檔: D:\FoodSCIWeb2020\FoodsciWebCode\Center\TeacherAndStudent\TeacherAndStudent.aspx    行: 26

堆疊追蹤:


[NullReferenceException: 並未將物件參考設定為物件的執行個體。]
   ASP.center_teacherandstudent_teacherandstudent_aspx.Page_Load(Object Sender, EventArgs e) in D:\FoodSCIWeb2020\FoodsciWebCode\Center\TeacherAndStudent\TeacherAndStudent.aspx:26
   System.Web.UI.Control.OnLoad(EventArgs e) +107
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1532


版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4682.0