Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > problem with table size

Thread Tools

problem with table size

Blue Man
Posts: n/a
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();





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.


Reply With Quote

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
Preferred Size, Minimum Size, Size Jason Cavett Java 5 05-25-2008 08:32 AM
mega pixels, file size, image size, and print size - Adobe Evangelists Frank ess Digital Photography 0 11-14-2006 05:08 PM
Table/table rows/table data tag question? Rio HTML 4 11-05-2004 08:11 AM
jpg file size ---> print size problem mark heinemann Digital Photography 5 04-29-2004 12:48 AM
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table. David Williams ASP .Net 2 08-12-2003 07:55 AM