change file extention

  • Thread starter Thread starter Howard
  • Start date Start date
H

Howard

how do i change the file extention of asp.net file?
ie. from .aspx to .mspx
 
Well I believe you are asking how can you map a request showing default.mspx
and still match it to default.aspx and show default.mspx. If so you need to
create a HTTP handler, if that's what you are asking, let me know and I'll
help you to do so.

Cheers
Al
 
Map mspx extension in IIS to the same ASP.NET ISAPI handler as .aspx already
is mapped (aspnet_isapi.dll). Then also on the applications's web config map
mspx extension to PageHandlerFactory. You can look into machine.config for
an example


<httpHandlers>
...
<add verb="*" path="*.aspx"
type="System.Web.UI.PageHandlerFactory" />
...
</httpHandlers>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top