静态页面和动态页面,有啥区别啊。不懂这两个。
还有就是
<body>
<form id="form1" action="t5.aspx" runat="server" method="post"/>
      用户名:<input id="username" name="username" type="text"/>
      <br />
      密&nbsp;&nbsp;&nbsp;码<input id="psw" name="psw" type="password"/>
      <input name="Button" type="submit" value="提交" />
      </form></body>
 这是做一个将用户名密码提交到 t5页面中。不懂 <form id="form1" action="t5.aspx" runat="server" method="post"/>这句话的意思
action 是提交的意思 id=form1  runat=server method=post 啥意思啊

解决方案 »

  1.   

    就是用POST动作将当前表单内容提交到t5.aspx上。你再写一个t5.aspx,里面用 Request.Forms["username"].ToString() 就可以得到用户名了。
      

  2.   

    <body>
    <form id="form1" action="t5.aspx" runat="server" method="post"/>
          用户名:<input id="username" name="username" type="text"/>
          <br />
          密&nbsp;&nbsp;&nbsp;码<input id="psw" name="psw" type="password"/>
          <input name="Button" type="submit" value="提交" />
          </form></body>
    这是t5.aspx:
    <head runat="server">
        <title>无标题页</title>
    </head>
    <body>
        </body>
    </html>
    不用写你那句话也可以调试成功。 怎么回事
      

  3.   

    哦  谢谢。 那action 啥功能咧。runat啥意思
      

  4.   

    action指示了表单提交触发的动作,比如提交给t5.aspx
    runat是ASP.NET的标记,表示这个控件将在服务器端运行。
      

  5.   

    thank you   我写完了 但提交 确实空白 大哥给检查一下
    <head>
        <title>无标题页</title>
        <style type="text/css">
            #Submit1
            {
                width: 103px;
            }
        </style>
    </head>
    <body>
      <form id="form1" action="t5.aspx"  runat="server" method="post"/>
            用户名:<input id="Text1" type="text" />
            密&nbsp;&nbsp;&nbsp; 码:<input id="Password1" type="password" /><input 
                type="submit" value="登录" /></body>
    </html>t5.aspx:
    <head runat="server">
        <title>无标题页</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        
        </div>
        </form>
    </body>
    </html>
      

  6.   

    t5.aspx:
    <head runat="server">
       <title>无标题页</title>
    </head>
    <body>
       <form id="form1" runat="server">
       <div>
         <%= Request.Forms["username"].ToString() %>
      </div>
       </form>
    </body>
    </html>