Click here to Skip to main content
15,885,978 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am doing a website development project. I had completed that project in asp.net but the customer want to html file. so please help me a hole asp file convert to html file.

Thanks,

Regards,
Rajesh
Posted
Updated 20-Oct-17 0:12am

You can't convert an "ASP" file into HTML: HTML is a markup language which describes how objects appear on the page of a browser, and (with the exception of client side javascript) it includes no processing at all once the page it rendered.

The "ASP" side of things runs on a server, under IIS (or equivalent) and the .NET framework, contains all of the processing, and generates the HTML to feed to the browser dynamically.

You can't just take the HTML and assume that it will do the same as the "ASP" file, because the HTML is a static object generated dynamically on the server and will normally be different for each user.
 
Share this answer
 
Open the page in a web browser and view page source. That is the HTML of the ASP page
 
Share this answer
 
Comments
Rajesh Veppilai 21-Aug-15 4:30am    
Hi,
Thanks for your comment. I try this way but the asp tags not working.
Andy Lanng 21-Aug-15 4:34am    
F-ES has given a less terse response.
There will be no asp tags if you open the page (web page, not the .aspx file) in a browser. Asp (active SERVER page) only works on the server to produce html. The browser will always receive pure html (and js etc).

As F-ES points out, the page will no longer be "active" if used as a flat html page.
Andy Lanng 21-Aug-15 4:36am    
PS: are the pages actually active? Does the content change or is there a form to post back? If you have used asp to build the page, but the page has static content anyway then conversion "might" be ok. Otherwise, tell the customer that they won't get anything but a static page that will never change
Do you mean they want it to have an html extension? If so google "use html for asp.net" and you'll find how to map html files to aspx requests, however I'd question why they want to do this. If the answer is SEO then tell them it will have no effect whatsoever.

If they literally mean a static html file then you can't unless your aspx pages have no server-side elements at all as html files have no capability for server-side processing.
 
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