Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 5:20am
Edited 1-Jan-13 5:21am
v2
Comments
Shahare at 1-Jan-13 11:17am
   
More code is required for answering. It currently seems as you enter the data after the table row closes.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

do not apply closing tag of table.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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
0 DamithSL 385
1 BillWoodruff 170
2 Zoltán Zörgő 165
3 OriginalGriff 164
4 Maciej Los 123
0 OriginalGriff 7,854
1 DamithSL 5,949
2 Sergey Alexandrovich Kryukov 5,449
3 Maciej Los 5,084
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 2 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100