G
Guest
I'm having trouble working with web controls from the C# code behind file
Some controls are accessible to me programatically, and some are not
For example, I trying to hide, or display an <asp:Table> on post back o
the page, here is my code
HTM
<asp:Table id="commentTable
runat="Server"><asp:TableRow><asp:TableCell>Som
Text</asp:TableCell></asp:TableRow></asp:Table
C# Code Behin
protected System.Web.UI.WebControls.Table commentTable
private void Page_Load(object sender, System.EventArgs e
commentTable.Visible = isPostBack
I get this error anytime I run the app
Object reference not set to an instance of an object
Description: An unhandled exception occurred during the execution of th
current web request. Please review the stack trace for more informatio
about the error and where it originated in the code
Exception Details: System.NullReferenceException: Object reference not se
to an instance of an object
Source Error
Line 37: commentTable.Visible = isPostBack
If you have experienced a similiar problem, please help.
Some controls are accessible to me programatically, and some are not
For example, I trying to hide, or display an <asp:Table> on post back o
the page, here is my code
HTM
<asp:Table id="commentTable
runat="Server"><asp:TableRow><asp:TableCell>Som
Text</asp:TableCell></asp:TableRow></asp:Table
C# Code Behin
protected System.Web.UI.WebControls.Table commentTable
private void Page_Load(object sender, System.EventArgs e
commentTable.Visible = isPostBack
I get this error anytime I run the app
Object reference not set to an instance of an object
Description: An unhandled exception occurred during the execution of th
current web request. Please review the stack trace for more informatio
about the error and where it originated in the code
Exception Details: System.NullReferenceException: Object reference not se
to an instance of an object
Source Error
Line 37: commentTable.Visible = isPostBack
If you have experienced a similiar problem, please help.