c# response输出表格

来源:百度知道 编辑:UC知道 时间:2024/06/21 09:12:54
一、我建一个a.aspx,那么我在a.aspx.cs的pageload中输入
Response.Write("<table border=1 bgcolor=red width=200px>");

Response.Write("</table>");
//先且不讨论引号的问题
这样写有错吗?
为什么在运行时看不到效果?
谁有能够运行的,给我看一下。先且不讨论response中引号的问题

只要在里面加上内容就好了
Response.Write("<table border=1 bgcolor=red width=200px>");
Response.Write("<tr>");

Response.Write("<td>");
Response.Write("hello");
Response.Write("</td>");

Response.Write("<td>"); Response.Write("hello");
Response.Write("</td>");

Response.Write("<td>"); Response.Write("hello");
Response.Write("</td>");

Response.Write("</tr>");

Response.Write("<tr>");
Response.Write("<td>"); Response.Write("hello");
Response.Write("</td>");

Response.Write("<td>"); Response.Write("hello");
Response.Write("<