Asp.net Table width Setting to 100%

Discussion in 'ASP .Net' started by Don Nablo, Oct 10, 2005.

  1. Don Nablo

    Don Nablo Guest

    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%?
    Don Nablo, Oct 10, 2005
    #1
    1. Advertising

  2. 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%?
    >
    >
    >
    >
    =?Utf-8?B?Q3VydF9DIFtNVlBd?=, Oct 10, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    727
    Beauregard T. Shagnasty
    Dec 29, 2007
  2. Replies:
    7
    Views:
    171
    Tad McClellan
    Jun 22, 2006
  3. fred
    Replies:
    3
    Views:
    261
    Zifud
    Mar 17, 2005
  4. Swifty
    Replies:
    18
    Views:
    945
    Thomas 'PointedEars' Lahn
    Jan 23, 2012
  5. Replies:
    5
    Views:
    869
Loading...

Share This Page