problem with table size

Discussion in 'ASP .Net' started by Blue Man, Nov 8, 2003.

  1. Blue Man

    Blue Man Guest

    Hello
    i have the code below to paste data from db to page :
    int counter=dataSet11.Tables["web"].Rows.Count;

    Response.Write("<center><table border=1 width=120>");

    for (int t=0 ;t<counter;t++)

    {

    Response.Write("<tr><td width=120>");

    string temp = dataSet11.Tables["web"].Rows[t]["text"].ToString();

    Response.Write(temp);

    Response.Write("</td></tr>");

    }

    Response.Write("</table></center>");



    The size of generated table in the page is not fixed and vary with texts.
    how can i fix the table size? i want the text be cuted to new line when it
    is bigger than "120" pixel. but it seems the table original size enlarging
    for long texts without /n between.

    Thanks
     
    Blue Man, Nov 8, 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. David Williams
    Replies:
    2
    Views:
    1,136
    Jacob Yang [MSFT]
    Aug 12, 2003
  2. Rio
    Replies:
    4
    Views:
    1,199
  3. Jeff
    Replies:
    8
    Views:
    493
    Martin Jay
    Jun 20, 2006
  4. Jason Cavett

    Preferred Size, Minimum Size, Size

    Jason Cavett, May 23, 2008, in forum: Java
    Replies:
    5
    Views:
    12,584
    Michael Jung
    May 25, 2008
  5.  Tom
    Replies:
    3
    Views:
    136
    Robert Klemme
    Nov 11, 2009
Loading...

Share This Page