【问题标题】:Difference Between Web Page and Web Form网页和 Web 表单之间的区别
【发布时间】:2011-12-16 05:44:42
【问题描述】:

我想知道Web Page和Web Form的区别

【问题讨论】:

标签: asp.net


【解决方案1】:

一个网络表单产生一个网页。或许多网页。网页只是“文档”的松散概念。 Web 表单是一种可以生成网页的对象。

【讨论】:

  • 添加到您的答案中,假设您希望您的网络表单有 3 个网页。如何在 MS Visual Studio 2012 中将新网页添加到 Web 表单。谢谢
【解决方案2】:

网页是一种文档/信息资源,通常在万维网上呈现为 HTML/XHTML,并通过 Web 浏览器访问。

而 Web 表单是您可以设计和开发网页的文档,而 Web 表单通常提供可以使用户开发网页的功能。

【讨论】:

    【解决方案3】:
    <html>
        <head>
          <title>my web page</title>
        </head>
        <body>
          <b>my web page. it does not have any html controls like textbox and button.</b>
        </body>
    </html>
    
    <html>
      <head>
        <title>my web form</title>
      </head>
      <body>
        <form action="mySecondPage.htm" method="post">
          <b>my web form. it may contains html controls like textbox and button.</b>
          <input type="text" id="txtUserName" /><br/>
          <input type="submit" value="Submit User Name" />
        </form>
      </body>
    </html>
    

    【讨论】:

    • 他在询问 asp.net WebForms。
    猜你喜欢
    • 2014-08-01
    • 2015-08-20
    • 1970-01-01
    • 2011-01-24
    • 2016-10-18
    • 1970-01-01
    • 2014-10-22
    • 2016-07-31
    • 2017-12-04
    相关资源
    最近更新 更多