且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将网页中的数据插入到html表中

更新时间:2023-01-29 11:53:37

dis不是一个单词。您的代码很难放置,脱离上下文,但在ASP.NET中,您永远不应该发出这样的表,这是一种浪费。如果要完全控制数据的发送方式,请使用转发器。
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.


不应用表的结束标记。


hi,



使用这样的表结构





Use table structure like this

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





然后用writer写这个字符串。



Then use writer to write this string.