By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,203 Members | 1,401 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,203 IT Pros & Developers. It's quick & easy.

displaying .aspx pages as .html page

P: n/a
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

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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/jayson.../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
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.