Is possible to rename my aspx to htm

G

Gordowey

Hi all,

I would like to know if is possible to rename my aspx .pages to .html
(or to a different extension..for example .mjk)..and continue running
the code behind, everything......as normal aspx pages

is that possible?

thanks all..

Alberto
 
L

Li-fan Chen

Hi Alberto,

Yes. Rebind the extension to use the handler normally pointed to .ASPX in
IIS.

Best personal regards,
-- Li-fan
 
G

Gordowey

Hi Li-fan Chen, thanks for your help....I have somen doubts abou what
you mean...

Do you mean.... to open the IISAdmin, right click in my website,
"properties/Directory TAB/Configuration Button", and add a new
"application mapping" for .html , linked to aspnet_isapi.dll...??

is that correct?

I am using IIS5.1, and aspx pages....


Thanks, Alberto
 
D

DKode

that is correct. You need to tell IIS that it should handle an
..htm/.html page through the asp.net ISAPI handler (aspnet_isapi.dll)
 
G

Gordowey

just one more thing... i have followed the steps above, and I have
noticed that the IIS serves the html pages (renamed from an aspx-page),
but it does not execute the code behind?

Is this the expected behavior?

Shouldn´t also execute the codebehind, since i have include new
mapping for .html pages ( handler: aspnet_isapi.dll) ?


Thanks again

Alberto
 

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

Members online

No members online now.

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top