Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

Is possible to rename my aspx to htm

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gordowey - 16 Feb 2006 19:38 GMT
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
Li-fan Chen - 16 Feb 2006 20:10 GMT
Hi Alberto,

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

Best personal regards,
-- Li-fan

Signature

Li-fan Chen
Software analyst/developer, Entrepreneur
Markham, Ontario, Canada

> Hi all,
>
[quoted text clipped - 7 lines]
>
> Alberto
Gordowey - 16 Feb 2006 20:47 GMT
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
DKode - 16 Feb 2006 21:06 GMT
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)
Gordowey - 20 Feb 2006 15:40 GMT
Thak you very much!
Gordowey - 20 Feb 2006 16:06 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.