[thelist] ASP.NET: table runat=server width??
Peter Brunone (EasyListBox.com)
peter at easylistbox.com
Thu May 18 14:34:20 CDT 2006
Try
tblMain.Width = Unit.ConvertFromString("700px")
Of course even if that works, it may not render correctly; you're better off setting the width through style attributes instead, i.e.
tblMain.Style.Add("width", "700px")
Cheers,
Peter
From: "Casey Crookston" <caseyc at netgainhosting.com>
On the html side, I've got:
...
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
System.Web.WebControls.Unit"
A couple Google searches have turned up nothing but HTML tutorials. I
searched for:
asp.net table runat=server define width
asp.net
asp.net
tutorial
How do I define the width? Thanks!!!
--
* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/
For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !
More information about the thelist
mailing list