Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NET
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 1 Jan '13 - 4:20
Edited 1 Jan '13 - 4:21

Comments
Shahare - 1 Jan '13 - 11:17
More code is required for answering. It currently seems as you enter the data after the table row closes.

3 solutions

do not apply closing tag of table.
  Permalink  
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.
  Permalink  
hi,
 
Use table structure like this
 
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.
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 508
1 Arun Vasu 315
2 Maciej Los 218
3 OriginalGriff 205
4 Aarti Meswania 170
0 Sergey Alexandrovich Kryukov 9,670
1 OriginalGriff 7,409
2 CPallini 3,968
3 Rohan Leuva 3,352
4 Maciej Los 2,861


Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 2 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid