Professional Web Applications Themes

Can a .aspx file be renamed to .htm? - ASP.NET General

Would the code-behind and all ASP.NET functionality still work if the ..aspx files had instead .htm extensions? I suppose it boils down to whether the page directives would still work. Thanks for your help....

  1. #1

    Default Can a .aspx file be renamed to .htm?

    Would the code-behind and all ASP.NET functionality still work if the
    ..aspx files had instead .htm extensions? I suppose it boils down to
    whether the page directives would still work.

    Thanks for your help.
    Bruce Guest

  2. #2

    Default Re: Can a .aspx file be renamed to .htm?

    No, there is an ISAPI filter that only process those files with the correct
    file extension... if you rename it, it won't be processed correctly..

    "Bruce W...1" <com> wrote in message
    news:com... 


    Frank Guest

  3. #3

    Default Re: Can a .aspx file be renamed to .htm?

    Well in the IIS Application Configuration there is no
    entry in the Application Mappings for a .htm file type.

    I'm not sure, but I would guess that if you added a .htm
    file type, set the executable path to the ASP.NET ISAPI
    DLL, and set the Verbs to be the same as that of a .aspx
    file (GET,HEAD,POST,DEBUG) you might get it to work.

    Good Luck,
    Jeremy

     
    files with the correct 
    correctly.. [/ref]
    still work if the [/ref]
    boils down to 
    >
    >
    >.
    >[/ref]
    Jeremy Guest

  4. #4

    Default Re: Can a .aspx file be renamed to .htm?

    If you try it can you please let us know

    "Jeremy" <com> wrote in message
    news:050b01c369b5$9ce7cd60$gbl... 
    > files with the correct 
    > correctly.. [/ref]
    > still work if the [/ref]
    > boils down to 
    > >
    > >
    > >.
    > >[/ref][/ref]


    MS Guest

  5. #5

    Default Re: Can a .aspx file be renamed to .htm?

    It works,

    "Jeremy" <com> wrote in message
    news:025d01c369bf$28500a30$gbl... [/ref]
    > a .aspx [/ref]
    > processed [/ref]
    > message [/ref]
    > it 
    > >
    > >
    > >.
    > >[/ref][/ref]


    MS Guest

  6. #6

    Default Re: Can a .aspx file be renamed to .htm?

    I should note that I've done this (created my own
    extension, not setup something for .html) to handle .asp
    files, and I haven't had any problems.

    So it will be interesting to see if somebody tries this
    for .aspx, but I don't see any reason why it wouldn't work.

    Cheers,
    Jeremy
     [/ref][/ref]
    a .htm [/ref]
    >a .aspx [/ref]
    >processed [/ref]
    >message [/ref]
    >it 
    >>
    >>
    >>.
    >>[/ref]
    >.
    >[/ref]
    Jeremy Guest

  7. #7

    Default Re: Can a .aspx file be renamed to .htm?

    Did you create your own file extension or use
    the .htm/.html extension?

     [/ref]
    have [/ref]
    I [/ref]
    previous [/ref][/ref]
    type. [/ref][/ref]
    a .htm [/ref][/ref]
    ISAPI 
    >> a .aspx 
    >> processed 
    >> message [/ref][/ref]
    functionality [/ref][/ref]
    suppose [/ref]
    >
    >
    >.
    >[/ref]
    Jeremy Guest

  8. #8

    Default Re: Can a .aspx file be renamed to .htm?

    created my own. no problem

    "Jeremy" <com> wrote in message
    news:01cd01c369c3$ddfcd760$gbl... [/ref]
    > have [/ref]
    > I [/ref]
    > previous [/ref]
    > type. [/ref]
    > a .htm [/ref]
    > ISAPI [/ref]
    > functionality [/ref]
    > suppose 
    > >
    > >
    > >.
    > >[/ref][/ref]


    MS Guest

  9. #9

    Default Re: Can a .aspx file be renamed to .htm?

    Yes I tried it and it works
    I changed the extension on an .aspx file to .html and I got the same result
    no problem

    "Bruce W...1" <com> wrote in message
    news:com... 


    MS Guest

  10. #10

    Default Re: Can a .aspx file be renamed to .htm?

    Yes I now tried changing .aspx to .html and still works just fine
    you need to add the mapping in IIS however
    works no problem so far.

    "Jeremy" <com> wrote in message
    news:01cd01c369c3$ddfcd760$gbl... [/ref]
    > have [/ref]
    > I [/ref]
    > previous [/ref]
    > type. [/ref]
    > a .htm [/ref]
    > ISAPI [/ref]
    > functionality [/ref]
    > suppose 
    > >
    > >
    > >.
    > >[/ref][/ref]


    MS Guest

  11. #11

    Default Re: Can a .aspx file be renamed to .htm?

    Html works fine
    Htm works fine
    aspx code did not execute when .htm or .html extension
    strange
    Sorry

    "MS News (MS ILM)" <com> wrote in message
    news:phx.gbl... 
    > > have 
    > > I 
    > > previous 
    > > type. 
    > > a .htm 
    > > ISAPI 
    > > functionality 
    > > suppose [/ref]
    >
    >[/ref]


    MS Guest

  12. #12

    Default Re: Can a .aspx file be renamed to .htm?

    ..html shows
    ..htm shows
    ..aspx code did not get exectuted!
    strange
    Sorry

    "MS News (MS ILM)" <com> wrote in message
    news:phx.gbl... 
    result 
    >
    >[/ref]


    MS Guest

Similar Threads

  1. Cannot Lock aspx File
    By yost_w in forum Macromedia Contribute General Discussion
    Replies: 2
    Last Post: June 22nd, 08:00 PM
  2. zero k file and renamed pdf
    By viper2@adobeforums.com in forum Adobe Indesign Macintosh
    Replies: 2
    Last Post: August 15th, 01:38 PM
  3. Batch Renamed my Files, cannot be opened as "Unix Executable File"
    By Ed_Gerson@adobeforums.com in forum Adobe Photoshop Mac CS, CS2 & CS3
    Replies: 2
    Last Post: April 9th, 09:04 PM
  4. i can't run aspx file on IIS 5.1
    By Philip Q [MVP] in forum ASP.NET General
    Replies: 0
    Last Post: July 23rd, 09:42 AM
  5. including one aspx file in another aspx file
    By vish in forum ASP.NET General
    Replies: 2
    Last Post: July 16th, 10:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139