changing the .aspx extension

Discussion in 'ASP .Net' started by =?Utf-8?B?cGI=?=, Jan 17, 2006.

  1. Do anyone know how to change the .aspx extension to something else, say
    ..sssx, for all or part of a ASP.NET 2.0 site? I recall a Microsoft article
    on this some time ago, but I cannot locate it.
     
    =?Utf-8?B?cGI=?=, Jan 17, 2006
    #1
    1. Advertising

  2. =?Utf-8?B?cGI=?=

    tdavisjr Guest

    tdavisjr, Jan 17, 2006
    #2
    1. Advertising

  3. =?Utf-8?B?cGI=?=

    Spam Catcher Guest

    "tdavisjr" <> wrote in news:1137528944.569564.111260
    @f14g2000cwb.googlegroups.com:

    > There are called ASP.NET Custom Handlers.
    >



    Isn't it easier just to remap the extensions in IIS?

    --
    Stan Kee ()
     
    Spam Catcher, Jan 17, 2006
    #3
  4. =?Utf-8?B?cGI=?=

    tdavisjr Guest

    Spam Catcher wrote:
    > "tdavisjr" <> wrote in news:1137528944.569564.111260
    > @f14g2000cwb.googlegroups.com:
    >
    > > There are called ASP.NET Custom Handlers.
    > >

    >
    >
    > Isn't it easier just to remap the extensions in IIS?
    >
    > --
    > Stan Kee ()


    Humm...I have never tried that method to see if that works. In addition
    to remapping the extension in IIS, you would also have to make a
    change to the machine.config file in the <httpHandlers> section. The
    question is. There may be some issues. Like will you still be able to
    us the Visual Studio Designer for web forms? I'm sure others can come
    up with more. However, do you really think this is an easier solution.
    It may seem that way, but you never know. If the poster want to give
    this a try, then do so and report the findings. I'm curious to know if
    this can be done or not.
     
    tdavisjr, Jan 17, 2006
    #4
  5. I still recall a Microsoft article that addressed this some time ago. If
    anyone knows the whereabouts of this article, I would appreciate its URL.

    "Spam Catcher" wrote:

    > "tdavisjr" <> wrote in news:1137528944.569564.111260
    > @f14g2000cwb.googlegroups.com:
    >
    > > There are called ASP.NET Custom Handlers.
    > >

    >
    >
    > Isn't it easier just to remap the extensions in IIS?
    >
    > --
    > Stan Kee ()
    >
     
    =?Utf-8?B?cGI=?=, Jan 17, 2006
    #5
  6. Extending ASP.NET
    http://msdn.microsoft.com/asp.net/reference/extend/default.aspx
    --
    HTH,
    Phillip Williams
    http://www.societopia.net
    http://www.webswapp.com


    "pb" wrote:

    > I still recall a Microsoft article that addressed this some time ago. If
    > anyone knows the whereabouts of this article, I would appreciate its URL.
    >
    > "Spam Catcher" wrote:
    >
    > > "tdavisjr" <> wrote in news:1137528944.569564.111260
    > > @f14g2000cwb.googlegroups.com:
    > >
    > > > There are called ASP.NET Custom Handlers.
    > > >

    > >
    > >
    > > Isn't it easier just to remap the extensions in IIS?
    > >
    > > --
    > > Stan Kee ()
    > >
     
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=, Jan 17, 2006
    #6
  7. Hi Pb,

    If you want to configure your custom file extension to be served as asp.net
    page (proceesed by PageHandler....), you can locate the <httpHandlers>
    configure element in machine.config(for asp.net 1.x) or the global
    web.config(for asp.net 2.0) under the framework's config folder....

    By default, the ".aspx" extension is configured there like:

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

    If you want to add a new file extension , just add a new entry like:

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


    Also, do not forget to add the IIS extension mapping in the IIS virtual
    directory setting(redirect to the aspnet_isapi dll...)

    Here is a web article which mentions some of this:

    #How ASP.NET Web Pages are Processed on the Web Server
    http://aspnet.4guysfromrolla.com/articles/011404-1.aspx

    Hope helps. Thanks,

    Steven Cheng
    Microsoft Online Support

    Get Secure! www.microsoft.com/security
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)




    --------------------
    | Thread-Topic: changing the .aspx extension
    | thread-index: AcYbtCvLFGvY8HQ6QO6TwoZraYEJyA==
    | X-WBNR-Posting-Host: 64.253.156.46
    | From: "=?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?="
    <>
    | References: <>
    <>
    <Xns974E9E781555Dusenethoneypotrogers@127.0.0.1>
    <>
    | Subject: Re: changing the .aspx extension
    | Date: Tue, 17 Jan 2006 14:20:06 -0800
    | Lines: 28
    | Message-ID: <>
    | MIME-Version: 1.0
    | Content-Type: text/plain;
    | charset="Utf-8"
    | Content-Transfer-Encoding: 7bit
    | X-Newsreader: Microsoft CDO for Windows 2000
    | Content-Class: urn:content-classes:message
    | Importance: normal
    | Priority: normal
    | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
    | Newsgroups: microsoft.public.dotnet.framework.aspnet
    | NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
    | Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGXA03.phx.gbl
    | Xref: TK2MSFTNGXA02.phx.gbl
    microsoft.public.dotnet.framework.aspnet:371562
    | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    |
    | Extending ASP.NET
    | http://msdn.microsoft.com/asp.net/reference/extend/default.aspx
    | --
    | HTH,
    | Phillip Williams
    | http://www.societopia.net
    | http://www.webswapp.com
    |
    |
    | "pb" wrote:
    |
    | > I still recall a Microsoft article that addressed this some time ago.
    If
    | > anyone knows the whereabouts of this article, I would appreciate its
    URL.
    | >
    | > "Spam Catcher" wrote:
    | >
    | > > "tdavisjr" <> wrote in news:1137528944.569564.111260
    | > > @f14g2000cwb.googlegroups.com:
    | > >
    | > > > There are called ASP.NET Custom Handlers.
    | > > >
    | > >
    | > >
    | > > Isn't it easier just to remap the extensions in IIS?
    | > >
    | > > --
    | > > Stan Kee ()
    | > >
    |
     
    Steven Cheng[MSFT], Jan 18, 2006
    #7
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John M
    Replies:
    1
    Views:
    1,290
    Kumar Reddi
    May 29, 2005
  2. Anand
    Replies:
    3
    Views:
    919
    Tim Daneliuk
    Nov 8, 2003
  3. Christian Seberino
    Replies:
    3
    Views:
    1,220
    Christian Seberino
    Feb 5, 2004
  4. Steve
    Replies:
    3
    Views:
    27,104
    Steve
    Aug 25, 2006
  5. Elhanan
    Replies:
    0
    Views:
    564
    Elhanan
    Jan 23, 2007
Loading...

Share This Page