Object variable or With block variable not set.
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.NullReferenceException: Object variable or With block variable not set.
Source Error:
Line 26: If s.id = "txtReason" Then
Line 27:
Line 28: viewState("reason") = s.selecteditem.value
Line 29:
Line 30:
this error comes it is "System.NullReferenceException: Object variable or With block variable not set".
if I look in the Stake trace :
following discription comes out. which I am not able to understand.
[NullReferenceException: Object variable or With block variable not set.]
Microsoft.VisualBasic.CompilerServices.LateBinding .LateGet(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack) +785
ASP.data_taft1_aspx.displaycontrolinfo(Object s) in I:\SIS Web Sites\Alternate Edu\data_taft1.aspx:28
ASP.data_taft1_aspx.disControls(Object s) in I:\SIS Web Sites\Alternate Edu\data_taft1.aspx:17
ASP.data_taft1_aspx.disControls(Object s) in I:\SIS Web Sites\Alternate Edu\data_taft1.aspx:18
ASP.data_taft1_aspx.disControls(Object s) in I:\SIS Web Sites\Alternate Edu\data_taft1.aspx:18
ASP.data_taft1_aspx.disControls(Object s) in I:\SIS Web Sites\Alternate Edu\data_taft1.aspx:18
ASP.data_taft1_aspx.submit_Button(Object sender, ImageClickEventArgs e) in I:\SIS Web Sites\Alternate Edu\data_taft1.aspx:38
System.Web.UI.WebControls.ImageButton.OnClick(Imag eClickEventArgs e) +109
System.Web.UI.WebControls.ImageButton.System.Web.U I.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +69
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1263
if you can figure it out .. please tell me..
I have go through all the referance books , msdn site too..
but I am not able to figure it out.
thanks
mark.
Aashish Shah
|