<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<%
Response.Write("<table width="100%" border="1" cellspacing="0" cellpadding="0">
  <tr>
    <td>hello&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>")
%>
</body>
</html>这是我全部的代码
这是我第一个asp.net的程序,还望各位成全啊

解决方案 »

  1.   

    在网页面上什么也不显示
    是不是还装什么程序才能用asp.net啊
      

  2.   

    string a=@"<table width="100%" border="1" cellspacing="0" cellpadding="0">
      <tr>
        <td>hello&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>";
    Response.Write(a);
      

  3.   

    <%
         Response.Write(@"<table width=""100%"" border=""1"" cellspacing=""0"" cellpadding=""0"">
      <tr>
        <td>hello&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>");
    %>
      

  4.   

    我用过了
    response.write("hello")
    什么也没有也没有报错
    见鬼了
      

  5.   

    cpp2017(慕白兄) ( ) 信誉:100    Blog  2007-01-12 17:22:32  得分: 0  
     
     
       <%
         Response.Write(@"<table width=""100%"" border=""1"" cellspacing=""0"" cellpadding=""0"">
      <tr>
        <td>hello&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>");
    %>
    这也不行啊
    我机上没有用.net
      

  6.   

    你直接用html代码写这个表格不行吗??
      

  7.   


    <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    </head>
    <body>
    <% Response.Write("<table width='100%' border='1' cellspacing='0' cellpadding='0'>") %>
    <% Response.Write("<tr>")%>
    <% Response.Write("<td>hello&nbsp;</td>")%>
    <% Response.Write("<td>&nbsp;</td>")%>
    <% Response.Write("<td>&nbsp;</td>")%>
    <% Response.Write("</tr>")%>
    <% Response.Write("<tr>")%>
    <% Response.Write("<td>&nbsp;</td>")%>
    <% Response.Write("<td>&nbsp;</td>")%>
    <% Response.Write("<td>&nbsp;</td>")%>
    <% Response.Write("</tr>")%>
    <% Response.Write("</table>")%>
    </body>
    </html>
    这样写就可以了