Last post May 28, 2009 10:58 PM by Allen Chen – MSFT
May 23, 2009 01:22 PM|Haosman|LINK
I'm working on a composite control, I added the child controls sucessfully, it's just a button and a textbox.
I added more items in Render function, it's HTML table with some attributes, but when I add the control to my ASP.net page I found all the itmes appear in the page, while I want the button and Textbox to be appeared in the page and exclude the table to be
appeared in the run time only.
May 23, 2009 02:36 PM|khparhami|LINK
you can use the ASP.NET table like this:
and then use the "visible" property of the table in code bihinde to hide it, like this:
May 27, 2009 07:50 AM|Haosman|LINK
Thank you khparhami, but here I'm talking about developing composite control, and I think this solution will not work in my case.
Still waiting for a solution.
May 28, 2009 10:58 PM|Allen Chen – MSFT|LINK
Please refer to:
You can detect the design mode and therefore not render the table.