Object reference not set to an instance of an object.
When I run this code:
Code:
tblMain.InnerHtml = "<tr><td>I'm sorry, you did not fill out one or more required "+
"fields (Title and or description). Please <a href=\"javascript:history.go(-1)\">go back</a> "+
"try again.</td></tr>";
tblMain is a HtmlTable which is defined as protected at the top and is set to runat server :confused: Any ideas? It's in C# in case you'd not noticed :)
Thanks
Re: Object reference not set to an instance of an object.
Quote:
Originally posted by TomGibbons
tblMain is a HtmlTable which is defined as protected at the top ....
Thanks
But has it been instanciated? Defining is one thing, but it doesn't do much good until the instance is actualy created.
TG