When I run this 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 :)
ThanksOriginally 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
I've never tried to do that as i'd say the majority of the time there will always be a better way of doing that sort of thing but anyway..... I just tried the same thing and get a different error message'HtmlTable' does not support the InnerHtml property. are you certain that this is the point where your code is failing?
Originally posted by Fishcake
I've never tried to do that as i'd say the majority of the time there will always be a better way of doing that sort of thing but anyway..... I just tried the same thing and get a different error message'HtmlTable' does not support the InnerHtml property. are you certain that this is the point where your code is failing? Ah, I wasn't getting that error message. Either way, I've gone about it a different way now and I'm getting the result I was after.
Thanks!
0 comments:
Post a Comment