Monday, March 26, 2012

Server Table Control where do we use it?

Does anybody know when do we use the table server control in asp.net 2.0

it seems hard to design staff with the server table control am i right?I only use them from server side code, if I want to create a table programmatically. I don't usually us them in my .aspx page. Sometimes I use the HtmlTable control when I wanted to dynamically hide the table from code-behind or add other control to it instead of using a placeholder.

If you use the Table control, it could use a specific adapter for render the correct output for the client that accesses the page. That could be one reason to use it.
I find it great to show and hide certain details in forms

like:

<asp:TableRow Visible="<%# User.IsInRole("Administrator") %
</asp:TableRow
Without haveing to rewrite any of my code behind logic
some accessibility features for disabled persons
(detection of browser)

0 comments:

Post a Comment