Click here to Skip to main content
15,880,392 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If I call a HTML page in my c#.net project, would it be parsed by the asp.net engine? If yes, why?
Sorry but I gave it a thought but didn't get the success. Please help.
Posted
Updated 24-Dec-10 22:24pm
v2
Comments
JF2015 25-Dec-10 4:24am    
Edited to fix spelling errors.

1 solution

If you call (Redirect or Request to) an HTML page in an Asp.net application hosted in IIS, the request will not be processed by Asp.net engine. Normally, IIS processes the requests for *.htm or *.html (Along with some other extensions), and, if you want Asp.net engine to process the request for HTML page, you have to configure some settings in IIS (So that, any URL having *.html extension is mapped to Asp.net execution engine) and also you need to create an HTTP handler in your Asp.net application.
 
Share this answer
 
Comments
Brij 25-Dec-10 5:02am    
Good Answer
Manfred Rudolf Bihy 25-Dec-10 9:35am    
I agree! 5+
kishorebt 3-Mar-14 1:37am    
Hosting is secondary. but my problem is whenever i click on some button in html page it has to transfer to my c# page or to javascript function so that i can save the data into the database.

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