HtmlTableCell Control
-
Hi I have a webpage that has a button on it and a HtmlTableCell Control that I created by putting a id= and runat=server in a td. What I would like to do is load an existing created page (.aspx) into the HtmlTableCell control when the button is clicked. In the click event I have cleared the control but now I am stuck as to how I add the page into the control. I do know that there is the form1.Controls.Add( ) method but what is it that I put into the parentheses? If it's just a URL of the page then that shouldn't be to difficult but if it's something else could someone please tell me how I load an existing page into the HtmlTableCell Control? Thanks Bikinis are like Statistics - what they reveal is Suggestive but what they conceal is Vital.
-
Hi I have a webpage that has a button on it and a HtmlTableCell Control that I created by putting a id= and runat=server in a td. What I would like to do is load an existing created page (.aspx) into the HtmlTableCell control when the button is clicked. In the click event I have cleared the control but now I am stuck as to how I add the page into the control. I do know that there is the form1.Controls.Add( ) method but what is it that I put into the parentheses? If it's just a URL of the page then that shouldn't be to difficult but if it's something else could someone please tell me how I load an existing page into the HtmlTableCell Control? Thanks Bikinis are like Statistics - what they reveal is Suggestive but what they conceal is Vital.
There are a couple of options that you may consider: + Use an iframe element, and simply specify the url of the web page in the src attribute of the iframe. + Use the
Server.Execute
method to execute the web page, then write the output markup to a Literal/Label control placed in the table cell. + Convert the web page to a web user control, dynamically load and add the control to the table cell. -
There are a couple of options that you may consider: + Use an iframe element, and simply specify the url of the web page in the src attribute of the iframe. + Use the
Server.Execute
method to execute the web page, then write the output markup to a Literal/Label control placed in the table cell. + Convert the web page to a web user control, dynamically load and add the control to the table cell.I think you should try the last One.... The fist one only works in Explorer... The Second One is very good, but I think you'll have problems if you want to catch Events or to change proerties of controls an get after the Value... Regards Ricardo Casquete
-
I think you should try the last One.... The fist one only works in Explorer... The Second One is very good, but I think you'll have problems if you want to catch Events or to change proerties of controls an get after the Value... Regards Ricardo Casquete
Thanks for the Suggestions I eventually did try the last one and so far have had no problems with it. Thanks again :-D
-
I think you should try the last One.... The fist one only works in Explorer... The Second One is very good, but I think you'll have problems if you want to catch Events or to change proerties of controls an get after the Value... Regards Ricardo Casquete
Ricardo Casquete wrote:
The fist one only works in Explorer...
its a layer in netscape. Easy to manage in javascript 2005 has this inside its ide The first one is the best one when it comes down to overhead expenditures. And is very easy 1 line of code equals many bugs. So don't write any!!