|
-
Jan 22nd, 2004, 09:48 AM
#1
Thread Starter
New Member
Table.Width
Dim tblNavigation As Table = New Table
tblNavigation.CellPadding = 0
tblNavigation.CellSpacing = 0
tblNavigation.Width = 710
The line above, "tblNavigation.Width = 710", does not work. I get a message stating,
"Value of type 'integer' cannot be converted to 'System.Web.UI.WebControls.Unit'"
How do you set the Width of a Table?
-
Jan 22nd, 2004, 11:25 AM
#2
Addicted Member
You must convert the number to unit that the browser can read. Part of System.Web.UI.WebControls Namespace.
VB Code:
Dim tblNavigation As Table = New Table()
tblNavigation.CellPadding = 0
tblNavigation.CellSpacing = 0
tblNavigation.Width = Unit.Pixel(710)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|