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.
精彩评论