views:

110

answers:

2

Hi

is there any tool or code to convert html files to .aspx ?

Elaboration to earlier question: I am looking for tool or code that automatically converts html controls to .aspx server control without having to manually change each control. i.e something that will take html page as input, parses it and outputs the controls for .aspx page.

thanks

+6  A: 

No conversion needed. Just change *.html to *.aspx.

If you want parts of the HTML page to become dynamic, there's more work involved then.

Justin Niessner
i'm looking for html to aspx controls, any tool or a code which can convert the html controls to aspx controls. renaming from html to aspx doesn't help converting the internal code.
vinod
@vinod The reason I asked is because HTML doesn't have server side controls. It only has its markup. ASP.NET outputs the same HTML markup. It sounds like your requirements are more complicated than your question makes them appear.
Justin Niessner
+2  A: 

No, ASP code is embedded in your regular HTML code, so your default web pages will have the extension .aspx but there are a few other things you need to do to get a ASP site up and running.

Check out this link with some help on how to get started with ASP .NET
http://www.asp.net/get-started/

Also, here's one of my favorite books on the subject that really helped me learn more about ASP (you might want to find a version 4.0 book though if you are working with the new features of ASP.)

Robert Greiner