{"id":237646,"date":"2022-03-26T08:01:06","date_gmt":"2022-03-26T00:01:06","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=237646"},"modified":"2022-03-14T10:03:14","modified_gmt":"2022-03-14T02:03:14","slug":"to-html-pages","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/to-html-pages.html","title":{"rendered":"ASP.NET Web Forms – HTML \u9875\u9762\u7b80\u4ecb"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nWeb Forms \u662f\u4e09\u79cd\u521b\u5efa ASP.NET \u7f51\u7ad9\u548c Web \u5e94\u7528\u7a0b\u5e8f\u7684\u7f16\u7a0b\u6a21\u5f0f\u4e2d\u7684\u4e00\u79cd\u3002\u7b80\u5355\u7684 ASP.NET \u9875\u9762\u770b\u4e0a\u53bb\u5c31\u50cf\u666e\u901a\u7684 HTML \u9875\u9762\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

Hello RUNOOB.COM<\/strong><\/div>\n

\u5728\u5f00\u59cb\u5b66\u4e60 ASP.NET \u4e4b\u524d\uff0c\u6211\u4eec\u5148\u6765\u6784\u5efa\u4e00\u4e2a\u7b80\u5355\u7684 HTML \u9875\u9762\uff0c\u8be5\u9875\u9762\u5c06\u5728\u6d4f\u89c8\u5668\u4e2d\u663e\u793a \"Hello RUNOOB.COM\"\uff1a<\/p>\n

Hello RUNOOB.COM!<\/h2><\/pre>\n
\u7528 HTML \u7f16\u5199\u7684 Hello RUNOOB.COM<\/strong><\/div>\n

\u4e0b\u9762\u7684\u4ee3\u7801\u5c06\u4ee5 HTML \u9875\u9762\u7684\u5f62\u5f0f\u663e\u793a\u5b9e\u4f8b\uff1a<\/p>\n

<html>\r\n<body bgcolor=\"yellow\">\r\n<center>\r\n<h2>Hello RUNOOB.COM!<\/h2>\r\n<\/center>\r\n<\/body>\r\n<\/html><\/pre>\n

\u5982\u679c\u60a8\u60f3\u4eb2\u81ea\u5c1d\u8bd5\u4e00\u4e0b\uff0c\u8bf7\u4fdd\u5b58\u4e0a\u9762\u7684\u4ee3\u7801\u5230\u4e00\u4e2a\u540d\u4e3a \"firstpage.htm\" \u7684\u6587\u4ef6\u4e2d\uff0c\u5e76\u521b\u5efa\u4e00\u4e2a\u5230\u8be5\u6587\u4ef6\u7684\u94fe\u63a5\uff1afirstpage.htm\u3002<\/p>\n

\u7528 ASP.NET \u7f16\u5199\u7684 Hello RUNOOB.COM<\/strong><\/div>\n

\u8f6c\u6362 HTML \u9875\u9762\u4e3a ASP.NET \u9875\u9762\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\uff0c\u76f4\u63a5\u590d\u5236\u4e00\u4e2a HTML \u6587\u4ef6\uff0c\u5e76\u628a\u65b0\u6587\u4ef6\u7684\u6269\u5c55\u540d\u6539\u6210 .aspx \u3002<\/p>\n

\u4e0b\u9762\u7684\u4ee3\u7801\u5c06\u4ee5 ASP.NET \u9875\u9762\u7684\u5f62\u5f0f\u663e\u793a\u5b9e\u4f8b\uff1a
\npre><html>
\n<body bgcolor=\"yellow\">
\n<center>
\n<h2>Hello RUNOOB.COM!<\/h2>
\n<\/center>
\n<\/body>
\n<\/html>
\n\u5982\u679c\u60a8\u60f3\u4eb2\u81ea\u5c1d\u8bd5\u4e00\u4e0b\uff0c\u8bf7\u4fdd\u5b58\u4e0a\u9762\u7684\u4ee3\u7801\u5230\u4e00\u4e2a\u540d\u4e3a \"firstpage.aspx\" \u7684\u6587\u4ef6\u4e2d\uff0c\u5e76\u521b\u5efa\u4e00\u4e2a\u5230\u8be5\u6587\u4ef6\u7684\u94fe\u63a5\uff1afirstpage.aspx\u3002<\/p>\n

\u5b83\u662f\u5982\u4f55\u5de5\u4f5c\u7684\uff1f<\/strong><\/div>\n

\u4ece\u6839\u672c\u4e0a\u8bb2\uff0cASP.NET \u9875\u9762\u4e0e HTML \u662f\u5b8c\u5168\u76f8\u540c\u7684\u3002<\/p>\n

HTML \u9875\u9762\u7684\u6269\u5c55\u540d\u662f .htm\u3002\u5982\u679c\u6d4f\u89c8\u5668\u5411\u670d\u52a1\u5668\u8bf7\u6c42\u4e00\u4e2a HTML \u9875\u9762\uff0c\u670d\u52a1\u5668\u53ef\u4ee5\u4e0d\u8fdb\u884c\u4efb\u4f55\u4fee\u6539\uff0c\u5c31\u76f4\u63a5\u53d1\u9001\u9875\u9762\u7ed9\u6d4f\u89c8\u5668\u3002<\/p>\n

ASP.NET \u9875\u9762\u7684\u6269\u5c55\u540d\u662f .aspx\u3002\u5982\u679c\u6d4f\u89c8\u5668\u5411\u670d\u52a1\u5668\u8bf7\u6c42\u4e2a ASP.NET \u9875\u9762\uff0c\u670d\u52a1\u5668\u5728\u5c06\u7ed3\u679c\u53d1\u56de\u7ed9\u6d4f\u89c8\u5668\u4e4b\u524d\uff0c\u9700\u8981\u5148\u5904\u7406\u9875\u9762\u4e2d\u7684\u53ef\u6267\u884c\u4ee3\u7801\u3002<\/p>\n

\u4e0a\u9762\u7684 ASP.NET \u9875\u9762\u4e0d\u5305\u542b\u4efb\u4f55\u53ef\u6267\u884c\u7684\u4ee3\u7801\uff0c\u6240\u4ee5\u6ca1\u6709\u6267\u884c\u4efb\u4f55\u4e1c\u897f\u3002\u5728\u4e0b\u9762\u7684\u5b9e\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u6dfb\u52a0\u4e00\u4e9b\u53ef\u6267\u884c\u7684\u4ee3\u7801\u5230\u9875\u9762\u4e2d\uff0c\u4ee5\u4fbf\u6f14\u793a\u9759\u6001 HTML \u9875\u9762\u548c\u52a8\u6001 ASP \u9875\u9762\u7684\u4e0d\u540c\u4e4b\u5904\u3002<\/p>\n

\u7ecf\u5178 ASP<\/strong><\/div>\n

Active Server Pages (ASP) \u5df2\u7ecf\u6d41\u884c\u5f88\u591a\u5e74\u4e86\u3002\u901a\u8fc7 ASP\uff0c\u53ef\u4ee5\u5728 HTML \u9875\u9762\u4e2d\u653e\u7f6e\u53ef\u6267\u884c\u4ee3\u7801\u3002<\/p>\n

\u4e4b\u524d\u7684 ASP \u7248\u672c\uff08\u5728 ASP.NET \u4e4b\u524d\uff09\u901a\u5e38\u88ab\u79f0\u4e3a\u7ecf\u5178 ASP\u3002<\/p>\n

ASP.NET \u4e0d\u5b8c\u5168\u517c\u5bb9\u7ecf\u5178 ASP\uff0c\u4f46\u662f\u53ea\u9700\u8981\u7ecf\u8fc7\u5c11\u91cf\u7684\u4fee\u6539\uff0c\u5927\u90e8\u5206\u7ecf\u5178 ASP \u9875\u9762\u5c31\u53ef\u4ee5\u4f5c\u4e3a ASP.NET \u9875\u9762\u826f\u597d\u5730\u8fd0\u884c\u3002<\/p>\n

\u7528\u7ecf\u5178 ASP \u7f16\u5199\u7684\u52a8\u6001\u9875\u9762<\/strong><\/div>\n

\u4e3a\u4e86\u6f14\u793a ASP \u662f\u5982\u4f55\u663e\u793a\u5305\u542b\u52a8\u6001\u5185\u5bb9\u7684\u9875\u9762\uff0c\u6211\u4eec\u5c06\u5411\u4e0a\u9762\u7684\u5b9e\u4f8b\u4e2d\u6dfb\u52a0\u4e00\u4e9b\u53ef\u6267\u884c\u7684\u4ee3\u7801\uff08\u7ea2\u8272\u5b57\u4f53\u6807\u8bc6\uff09\uff1a<\/p>\n

<html>\r\n<body bgcolor=\"yellow\">\r\n<center>\r\n<h2>Hello RUNOOB.COM!<\/h2>\r\n<p><%Response.Write(now())%><\/span><\/p>\r\n<\/center>\r\n<\/body>\r\n<\/html><\/pre>\n

<% --%> \u6807\u7b7e\u5185\u7684\u4ee3\u7801\u662f\u5728\u670d\u52a1\u5668\u4e0a\u6267\u884c\u7684\u3002<\/p>\n

Response.Write \u662f\u7528\u6765\u5411 HTML \u8f93\u51fa\u6d41\u4e2d\u5199\u4e1c\u897f\u7684 ASP \u4ee3\u7801\u3002<\/p>\n

Now() \u662f\u4e00\u4e2a\u8fd4\u56de\u670d\u52a1\u5668\u5f53\u524d\u65e5\u671f\u548c\u65f6\u95f4\u7684\u51fd\u6570\u3002<\/p>\n

\u5982\u679c\u60a8\u60f3\u4eb2\u81ea\u5c1d\u8bd5\u4e00\u4e0b\uff0c\u8bf7\u4fdd\u5b58\u4e0a\u9762\u7684\u4ee3\u7801\u5230\u4e00\u4e2a\u540d\u4e3a \"dynpage.asp\" \u7684\u6587\u4ef6\u4e2d\uff0c\u5e76\u521b\u5efa\u4e00\u4e2a\u5230\u8be5\u6587\u4ef6\u7684\u94fe\u63a5\uff1adynpage.asp\u3002<\/p>\n

\u7528 ASP .NET \u7f16\u5199\u7684\u52a8\u6001\u9875\u9762<\/strong><\/div>\n

\u4e0b\u9762\u7684\u4ee3\u7801\u5c06\u4ee5 ASP.NET \u9875\u9762\u7684\u5f62\u5f0f\u663e\u793a\u5b9e\u4f8b\uff1a<\/p>\n

<html>\r\n<body bgcolor=\"yellow\">\r\n<center>\r\n<h2>Hello RUNOOB.COM!<\/h2>\r\n<p><%Response.Write(now())%><\/span><\/p>\r\n<\/center>\r\n<\/body>\r\n<\/html><\/pre>\n

\u5982\u679c\u60a8\u60f3\u4eb2\u81ea\u5c1d\u8bd5\u4e00\u4e0b\uff0c\u8bf7\u4fdd\u5b58\u4e0a\u9762\u7684\u4ee3\u7801\u5230\u4e00\u4e2a\u540d\u4e3a \"dynpage.aspx\" \u7684\u6587\u4ef6\u4e2d\uff0c\u5e76\u521b\u5efa\u4e00\u4e2a\u5230\u8be5\u6587\u4ef6\u7684\u94fe\u63a5\uff1adynpage.aspx\u3002<\/p>\n

ASP.NET \u5bf9\u6bd4\u7ecf\u5178 ASP<\/strong><\/div>\n

\u4e0a\u9762\u7684\u5b9e\u4f8b\u65e0\u6cd5\u6f14\u793a ASP.NET \u4e0e\u7ecf\u5178 ASP \u4e4b\u95f4\u4efb\u4f55\u7684\u4e0d\u540c\u4e4b\u5904\u3002<\/p>\n

\u6b63\u5982\u6700\u540e\u7684\u4e24\u4e2a\u5b9e\u4f8b\u4e2d\uff0c\u60a8\u770b\u4e0d\u51fa ASP \u9875\u9762\u548c ASP.NET \u9875\u9762\u4e24\u8005\u4e4b\u95f4\u7684\u4e0d\u540c\u4e4b\u5904\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5728\u5f00\u59cb\u5b66\u4e60 ASP.NET \u4e4b\u524d\uff0c\u6211\u4eec\u5148\u6765\u6784\u5efa\u4e00\u4e2a\u7b80\u5355\u7684 HTML \u9875\u9762\uff0c\u8be5\u9875\u9762\u5c06\u5728\u6d4f\u89c8\u5668\u4e2d\u663e\u793a “Hello […]<\/p>\n","protected":false},"author":1470,"featured_media":237648,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-237646","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/237646","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1470"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=237646"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/237646\/revisions"}],"predecessor-version":[{"id":237652,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/237646\/revisions\/237652"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/237648"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=237646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=237646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=237646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}