problem with table size

B

Blue Man

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top