Click here to Skip to main content
11,429,154 members (53,937 online)
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)



Advertise | Privacy | Mobile
Web03 | 2.8.150428.2 | Last Updated 2 Jan 2013
Copyright © CodeProject, 1999-2015
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