Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to convert aspx page into html page?

Tags:

html

asp.net

I have designed my web page in asp.net its in aspx page. i need to covert it into html page .Because my server not support .aspx page help me to solve this issue

like image 855
Ayyappan Anbalagan Avatar asked Jun 24 '10 17:06

Ayyappan Anbalagan


4 Answers

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'll lose any asp.net page methods etc.

like image 109
amelvin Avatar answered Sep 21 '22 03:09

amelvin


  1. Remove all the server side code
  2. Rename the file

or

  1. Open in web browser
  2. Pick Save As
like image 37
Quentin Avatar answered Sep 22 '22 03:09

Quentin


put it on a server that supports asp, and then view the source and copy to a static html file

like image 26
wowo_999 Avatar answered Sep 22 '22 03:09

wowo_999


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.

like image 28
Abhishek Motiwale Avatar answered Sep 20 '22 03:09

Abhishek Motiwale