未将对象引用设置到对象的实例。
未将对象引用设置到对象的实例。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。
源错误:
行 21: 'Me.Response.End()
行 22: Dim cc1 As DropDownList = Me.DataGrid1.FindControl("cc1")
行 23: Response.Write(cc1.SelectedItem.Text)
行 24: Response.End()
行 25: End Sub
源文件: E:\nengyuan\nhcpinstr.aspx.vb 行: 23
堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
nhcpinstr.DataGrid1_UpdateCommand(Object source, DataGridCommandEventArgs e) in E:\nengyuan\nhcpinstr.aspx.vb:23
System.Web.UI.WebControls.DataGrid.OnUpdateCommand(DataGridCommandEventArgs e) +75
System.Web.UI.WebControls.DataGrid.OnBubbleEvent(Object source, EventArgs e) +445
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.DataGridItem.OnBubbleEvent(Object source, EventArgs e) +117
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +85
System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +155
System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +170
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4886