Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hey,
i want to insert the data which i input in an html table.
i have made a .htm page and a table, but values are not inserted in it. the values are inserted below the table.


i wrote dis code in visual studio 2008 but now it is not working in visual studio 2010.

objwriter.WriteLine( "/tr>");
" + txtname.Text + "" + txtemail.Text + "
Posted
Updated 1-Jan-13 4:21am
v2
Comments
Shahare 1-Jan-13 11:17am    
More code is required for answering. It currently seems as you enter the data after the table row closes.

hi,

Use table structure like this

XML
StringBuilder sb=new StringBuilder();
sb.append("<table><tr><td>");
sb.append("txtemail.Text");
sb.append("</td></tr></table>");


Then use writer to write this string.
 
Share this answer
 
do not apply closing tag of table.
 
Share this answer
 
dis is not a word. Your code is hard to place, taken out of context, but in ASP.NET, you should never emit tables like this, it's a waste. Use a repeater if you want full control over how data is emitted.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900