Server Error in '/' Application.

參數化查詢 '(@ID nvarchar(4000))SELECT * FROM ContactSetting WHERE ID=@ID' 必須有參數 '@ID',但未提供。

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.Data.SqlClient.SqlException: 參數化查詢 '(@ID nvarchar(4000))SELECT * FROM ContactSetting WHERE ID=@ID' 必須有參數 '@ID',但未提供。

Source Error:


Line 126:                End Using
Line 127:            Catch ex As Exception
Line 128:                Throw ex
Line 129:            End Try
Line 130:

Source File: D:\WebFiles\FJU輔仁大學法學院-法律學系\Contact.aspx.vb    Line: 128

Stack Trace:


[SqlException (0x80131904): 參數化查詢 '(@ID nvarchar(4000))SELECT * FROM ContactSetting WHERE ID=@ID' 必須有參數 '@ID',但未提供。]
   ContactUs_frame.Page_Load(Object sender, EventArgs e) in D:\WebFiles\FJU輔仁大學法學院-法律學系\Contact.aspx.vb:128
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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