Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Asp.net Table width Setting to 100%

Reply
Thread Tools

Asp.net Table width Setting to 100%

 
 
Don Nablo
Guest
Posts: n/a
 
      10-10-2005
With an asp table I can do this to get it to be 100% of screen.
<asp:table id="Table1" runat="server" Width="100%">

But I can't find out how to set it via the properties of the table during
the page_load event.

Sub Page_Load(......)

Table1.Width = "100%" 'this is not the right class since it requires a
unit class to set. But how would I tell the unit class that it is to be
100%?



 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q3VydF9DIFtNVlBd?=
Guest
Posts: n/a
 
      10-10-2005
tableName.Attributes.Add("width","100%")

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com



"Don Nablo" wrote:

> With an asp table I can do this to get it to be 100% of screen.
> <asp:table id="Table1" runat="server" Width="100%">
>
> But I can't find out how to set it via the properties of the table during
> the page_load event.
>
> Sub Page_Load(......)
>
> Table1.Width = "100%" 'this is not the right class since it requires a
> unit class to set. But how would I tell the unit class that it is to be
> 100%?
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tetration (print 100^100^100^100^100^100^100^100^100^100^100^100^100^100) jononanon@googlemail.com C Programming 5 04-25-2012 08:49 PM
Shrinking the width of a WIDTH=100% table Swifty Javascript 18 01-23-2012 03:36 PM
Help! Fixed width table with a 100% width image in it is assuming theimages intrinsic size, although it does shrink the image satya.komatineni@gmail.com HTML 1 12-29-2007 08:32 PM
how to replace this like <img width=100 ...> with <img width="100" ...> zhanye815@gmail.com Perl Misc 7 06-21-2006 11:16 PM
Re: resized image in table extends table width to original image width Sean Jorden HTML 1 08-19-2003 08:59 AM



Advertisments