displaying .aspx pages as .html page

  • Thread starter Thread starter crombie
  • Start date Start date
C

crombie

hi,

i got a registration web form working (connected to ms access via aspx page with code-behind). i need my registration page to be a .html instead of .aspx page. how do i accomplish that? i do have validation controls and etc on the aspx page and would not like to lose that.

right now, this is the flow of my pages/data:
register.aspx -> register.aspx.vb -> ms access

i would like:
register.html -> register.aspx -> register.aspx.vb -> ms access

any prompt replies would be greatly appreciated
 
this functionality can be implemented by mapping a custom httpHandler to the type of your web page. to see an example of this, plus a more detailed explanation, go to http://zerotrilogy.gotdns.com/jaysonblog/archive/2004/01/15/211.asp

basically you will instruct the .net runtime to intercept a request for your specific type, plus the .html extension, and then map the processing back to the aspnet_isapi.dll so the ASP.NET runtime can still render the page (as it's an .aspx page). it sounds complicated, but it's not. feel free to email me if you need some more information. also, searching on IHttpHandler will yield you some good results

ht
jayson
 
Back
Top