Is possible to rename my aspx to htm

  • Thread starter Thread starter Gordowey
  • Start date Start date
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
 
Hi Alberto,

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

Best personal regards,
-- Li-fan
 
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
 
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)
 
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

Back
Top