Click here to Skip to main content
12,300,021 members (51,495 online)
Rate this:
 
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 4:20am
Edited 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.
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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160525.2 | Last Updated 2 Jan 2013
Copyright © CodeProject, 1999-2016
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