Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how to convert a .aspx file to html files
Posted
Updated 7-Jun-16 22:41pm

Open it on your local machine in a browser, view the source (View | Source in IE, View | Page Source in Firefox etc ), then save that page source as pagename.html.

Obviously you will lose any asp.net page methods
 
Share this answer
 
Comments
sravani.v 18-May-12 4:20am    
My 5!
That is not a good idea, if I understand you right.
HTML files are static - the only processing allowed is on the client machine, via javascript.

ASPX files are dynamic, there is processing on the server each time the page is loaded or interacted with by the user, and this generates HTML which is passed to the client browser.

If you convert your ASPX to HTML you will lose all the dynamic elements of the page. Try it: Load your ASPX page in the browser and right click. Select "View Page Source (or whatever your browser calls it) and save that to you local HDD. You can load it, and it will look like your page, but nothing will actually work.
 
Share this answer
 
Comments
sravani.v 18-May-12 4:20am    
My 5!
 
Share this answer
 
Just rename aspx to html.
You will have to convert all server controls used for displaying markup to HTML tags.

What is required exactly,eloborate
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900