[thelist] ASP.NET: table runat=server width??

Casey Crookston caseyc at netgainhosting.com
Thu May 18 14:22:59 CDT 2006

On the html side, I've got:


<asp:table id="tblMain" runat="server">




Now, in the code behind, I need to define the width:


tblMain.Width = ???


"700" and 700 and "100%" and 100% don't work. 


"Value of type "String" can not be converted to


A couple Google searches have turned up nothing but HTML tutorials.  I
searched for:


asp.net table runat=server define width

asp.net <table runat=server 

asp.net <table runat=server define width in code behind

<asp:table Runat="server"> tutorial



How do I define the width?  Thanks!!!


More information about the thelist mailing list