Click here to Skip to main content
14,427,367 members
Rate this:
Please Sign up or sign in to vote.
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 23:24pm
v2
Comments
JF2015 25-Dec-10 4:24am
   
Edited to fix spelling errors.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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.
   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100