开发者

Convert an html page into a .aspx with .cs

开发者 https://www.devze.com 2023-04-11 15:34 出处:网络
I just bought template .Now i want to convert this HTML pages into a .aspx page with .cs with it.Does any one have any way to get through this !开发者_JAVA技巧?but also keeping the java scripts in the

I just bought template .Now i want to convert this HTML pages into a .aspx page with .cs with it.Does any one have any way to get through this !开发者_JAVA技巧?but also keeping the java scripts in the html as it is .Thx!


Create new .aspx page and copy the code from html file. If it contains any javascripts added that as a seperate file and link it


An html file won't have any code in it, so just change the extension to .aspx.

You can then manually add a .cs file, and update the controls to be asp controls as necessary.


Your best bet would be to just create a new page in Visual Studio, and then copy the html over. At some point your going to need to create a Web Site or Web Application depending on your needs, and that will take care of creating the correct <% Page %> declaration and code-behind. You'll likely want to put that template into a Master page really.

0

精彩评论

暂无评论...
验证码 换一张
取 消