RE: Web user control content doesn't resize in web form table

Discussion in 'ASP .Net' started by Eldon Lei [MSFT], Jul 10, 2003.

  1. Hi Paul:

    The only suggestion I could give is to wrap the table with a <div> tag, and
    set the width of that <div> to be 100%. ASP.NET controls will have to be
    transformed into HTML before being presented on the browser. Therefore,
    these controls have the same limitations as HTML.

    I am not sure when ASP.NET generates the HTML code during your Page_Load
    event, does it generate the width in percentage or fixed pixels? That
    really depends what content is added inside the 2nd column. If there is a
    line of text inside the 2nd column which does not contain a space, then the
    long string will basically define the width of the table. That's because
    the cell will not break a non-breakable (strings that do not have space)
    string into 2 lines.

    Hope this helps,
    Eldon
    Eldon Lei [MSFT], Jul 10, 2003
    #1
    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. Chubby Arse
    Replies:
    0
    Views:
    540
    Chubby Arse
    Oct 6, 2005
  2. hazz
    Replies:
    6
    Views:
    49,293
    SkyUCHC
    Jun 9, 2010
  3. Chubby Arse

    Custom control renders table but doesn't resize at design time.

    Chubby Arse, Oct 6, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    164
    Chubby Arse
    Oct 6, 2005
  4. Kurt
    Replies:
    0
    Views:
    175
  5. Replies:
    2
    Views:
    1,227
    Adrienne
    Feb 13, 2005
Loading...

Share This Page