如何转换“.html”页面到asp.net“.aspx”网页 [英] how to convert ".html" pages into asp.net ".aspx" pages

查看:92
本文介绍了如何转换“.html”页面到asp.net“.aspx”网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将.html页面转换为asp.net.aspx页面

解决方案

您需要在aspx中重新设计并重新制作html页面。

AFAIK,别无他法。



可能有一些工具可以帮助你,但我不希望他们中的任何一个完全工作。


您可以使用所有css,图像文件夹(如果有html页面)将HTML源代码粘贴到aspx页面上,并手动将HTML控件更改为ASP.Net控件。 />


例如:

表格标签在Asp.net中,您可以更改为

< form runat =server> 

添加runat =server。



和一些控件可以更改为

< button id =idtext =labelönclick=sub>用HTML格式。

< asp:Button id =idtext =labelOnClick =subrunat =server/> 

在asp.net中添加ASP和runat =server< / button>


http://stackoverflow.com/questions/3112301/how-to-convert-aspx-page-into-html-page [ ^ ]

how to convert ".html" pages into asp.net ".aspx" pages

解决方案

You need to redesign and remake your html page in aspx.
AFAIK, there is no other way.

There may be a few tools to help you out, but I dont expect any of them to work completely.


You can Paste the HTML source code on aspx page with all css,image folders (if html page have) and change the HTML controls to ASP.Net Controls manually.

For Example:
for Form tag in Asp.net ,You can change as

<form runat="server">

by adding runat="server".

and some controls can be changed as
<button id="id" text="label" önclick="sub"> in HTML.

<asp:Button id="id" text="label" OnClick="sub" runat="server" />

in asp.net by adding ASP and runat="server"</button>


http://stackoverflow.com/questions/3112301/how-to-convert-aspx-page-into-html-page[^]


这篇关于如何转换“.html”页面到asp.net“.aspx”网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆