Ask a Question related to ASP.NET General, Design and Development.
-
Eldon Lei [MSFT] #1
RE: Web user control content doesn't resize in web form table
Hi Paul:
The only suggestion I could give is to wrap the table with a <div> tag, and
set the width of that <div> to be 100%. ASP.NET controls will have to be
transformed into HTML before being presented on the browser. Therefore,
these controls have the same limitations as HTML.
I am not sure when ASP.NET generates the HTML code during your Page_Load
event, does it generate the width in percentage or fixed pixels? That
really depends what content is added inside the 2nd column. If there is a
line of text inside the 2nd column which does not contain a space, then the
long string will basically define the width of the table. That's because
the cell will not break a non-breakable (strings that do not have space)
string into 2 lines.
Hope this helps,
Eldon
Eldon Lei [MSFT] Guest
-
Custom control renders table but doesn't resize at design time.
Hi all, I have a control, that basically is my own version of the datagrid, except that is renderers purely readonly tabular information. When... -
Web User Control Events vs. Controls Content
I have a textbox embedded in a DataGrid which in turn is part of a web user control. I want to save any changes made to the text on postback. This... -
How do I put a user control into a table?
I have a user control that create a product thumbnail and details. I am working on aother user control that I will pass some variables like # of... -
Dynamic user control in a table.
I have a user control, htmlBlock_ProductThumb that I would like to add to a dot net table. I'm not sure how to get the output of the usercontrol... -
web form user control best practices?
i have a few user controls that need a "visible" property. one example is an error box. the error box's visible property would only be set in the...



Reply With Quote

