I have a master page that contains 1 contentplaceholder. In my default.aspx (that uses the masterpage layout) I have a table server control. During page_load I get the data I need and repeatedly add the usercontrol to the table control, one user control per row. My user control is basically a HTML table with several rows and columns that's populated with data upon creation. I want this table to fill the contentplaceholder's width. In addition within the masterpage I have a CSS link for my stylesheet.
Here are my questions:
- Is there a better way of adding info to the contentplaceholders (CPH) instead of using table controls, or can I access the CPH directly?
- Is there a best way to control the exact size of this table server control or usercontrol's HTML table? Do I want to stay away from inline formatting and put it all in CSS? Currently, without inline formatting for all table elements, it's always tiny!
- I am unable to see my formatting in my usercotrol until I drag the stylesheet, but then I have 2 references in different areas. In addition, the formatting that I see in the usercontrol (colored text) doesn't appear when running the site.
Is there something in the order that the page is rendered that dictates the order and placement of items?
Thanks!