Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Can a .aspx file be renamed to .htm?

Reply
Thread Tools

Can a .aspx file be renamed to .htm?

 
 
Bruce W...1
Guest
Posts: n/a
 
      08-23-2003
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.
 
Reply With Quote
 
 
 
 
Frank Drebin
Guest
Posts: n/a
 
      08-23-2003
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" <> wrote in message
news:...
> 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.



 
Reply With Quote
 
 
 
 
Jeremy
Guest
Posts: n/a
 
      08-23-2003
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


>-----Original Message-----
>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" <> wrote in message
>news:...
>> 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.

>
>
>.
>

 
Reply With Quote
 
MS News \(MS ILM\)
Guest
Posts: n/a
 
      08-23-2003
If you try it can you please let us know

"Jeremy" <> wrote in message
news:050b01c369b5$9ce7cd60$...
> 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
>
>
> >-----Original Message-----
> >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" <> wrote in message
> >news:...
> >> 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.

> >
> >
> >.
> >



 
Reply With Quote
 
MS News \(MS ILM\)
Guest
Posts: n/a
 
      08-23-2003
It works,

"Jeremy" <> wrote in message
news:025d01c369bf$28500a30$...
> Sorry, but I personally won't try it because I don't have
> an environment where I would want to test this out (and I
> wouldn't want to risk screwing anything up with .html
> files because if you can get to .html files you know IIS
> is working).
>
> However, if somebody would like to try this and not use
> an .html extension... Create (make up) a brand new file
> extension (maybe have files called mypage.irule, as
> opposed to mypage.aspx), add of the info from my previous
> post in IIS and try it out.
>
> At least this way you won't risk the possibility of
> screwing up anything with .html files.
>
> And please, if somebody does try this post something in
> this newsgroup to let us know if it works.
>
> Thanks,
> Jeremy
>
> >-----Original Message-----
> >If you try it can you please let us know
> >
> >"Jeremy" <> wrote in message
> >news:050b01c369b5$9ce7cd60$...
> >> 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
> >>
> >>
> >> >-----Original Message-----
> >> >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" <> wrote in

> message
> >> >news:...
> >> >> 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.
> >> >
> >> >
> >> >.
> >> >

> >
> >
> >.
> >



 
Reply With Quote
 
Jeremy
Guest
Posts: n/a
 
      08-23-2003
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

>-----Original Message-----
>Sorry, but I personally won't try it because I don't have
>an environment where I would want to test this out (and I
>wouldn't want to risk screwing anything up with .html
>files because if you can get to .html files you know IIS
>is working).
>
>However, if somebody would like to try this and not use
>an .html extension... Create (make up) a brand new file
>extension (maybe have files called mypage.irule, as
>opposed to mypage.aspx), add of the info from my previous
>post in IIS and try it out.
>
>At least this way you won't risk the possibility of
>screwing up anything with .html files.
>
>And please, if somebody does try this post something in
>this newsgroup to let us know if it works.
>
>Thanks,
>Jeremy
>
>>-----Original Message-----
>>If you try it can you please let us know
>>
>>"Jeremy" <> wrote in message
>>news:050b01c369b5$9ce7cd60$...
>>> 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
>>>
>>>
>>> >-----Original Message-----
>>> >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" <> wrote in

>message
>>> >news:...
>>> >> 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.
>>> >
>>> >
>>> >.
>>> >

>>
>>
>>.
>>

>.
>

 
Reply With Quote
 
Jeremy
Guest
Posts: n/a
 
      08-23-2003
Did you create your own file extension or use
the .htm/.html extension?


>-----Original Message-----
>It works,
>
>"Jeremy" <> wrote in message
>news:025d01c369bf$28500a30$...
>> Sorry, but I personally won't try it because I don't

have
>> an environment where I would want to test this out (and

I
>> wouldn't want to risk screwing anything up with .html
>> files because if you can get to .html files you know IIS
>> is working).
>>
>> However, if somebody would like to try this and not use
>> an .html extension... Create (make up) a brand new file
>> extension (maybe have files called mypage.irule, as
>> opposed to mypage.aspx), add of the info from my

previous
>> post in IIS and try it out.
>>
>> At least this way you won't risk the possibility of
>> screwing up anything with .html files.
>>
>> And please, if somebody does try this post something in
>> this newsgroup to let us know if it works.
>>
>> Thanks,
>> Jeremy
>>
>> >-----Original Message-----
>> >If you try it can you please let us know
>> >
>> >"Jeremy" <> wrote in message
>> >news:050b01c369b5$9ce7cd60$...
>> >> 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
>> >>
>> >>
>> >> >-----Original Message-----
>> >> >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" <> wrote in

>> message
>> >> >news:...
>> >> >> 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.
>> >> >
>> >> >
>> >> >.
>> >> >
>> >
>> >
>> >.
>> >

>
>
>.
>

 
Reply With Quote
 
MS News \(MS ILM\)
Guest
Posts: n/a
 
      08-23-2003
created my own. no problem

"Jeremy" <> wrote in message
news:01cd01c369c3$ddfcd760$...
> Did you create your own file extension or use
> the .htm/.html extension?
>
>
> >-----Original Message-----
> >It works,
> >
> >"Jeremy" <> wrote in message
> >news:025d01c369bf$28500a30$...
> >> Sorry, but I personally won't try it because I don't

> have
> >> an environment where I would want to test this out (and

> I
> >> wouldn't want to risk screwing anything up with .html
> >> files because if you can get to .html files you know IIS
> >> is working).
> >>
> >> However, if somebody would like to try this and not use
> >> an .html extension... Create (make up) a brand new file
> >> extension (maybe have files called mypage.irule, as
> >> opposed to mypage.aspx), add of the info from my

> previous
> >> post in IIS and try it out.
> >>
> >> At least this way you won't risk the possibility of
> >> screwing up anything with .html files.
> >>
> >> And please, if somebody does try this post something in
> >> this newsgroup to let us know if it works.
> >>
> >> Thanks,
> >> Jeremy
> >>
> >> >-----Original Message-----
> >> >If you try it can you please let us know
> >> >
> >> >"Jeremy" <> wrote in message
> >> >news:050b01c369b5$9ce7cd60$...
> >> >> 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
> >> >>
> >> >>
> >> >> >-----Original Message-----
> >> >> >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" <> wrote in
> >> message
> >> >> >news:...
> >> >> >> 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.
> >> >> >
> >> >> >
> >> >> >.
> >> >> >
> >> >
> >> >
> >> >.
> >> >

> >
> >
> >.
> >



 
Reply With Quote
 
MS News \(MS ILM\)
Guest
Posts: n/a
 
      08-23-2003
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" <> wrote in message
news:...
> 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.



 
Reply With Quote
 
MS News \(MS ILM\)
Guest
Posts: n/a
 
      08-23-2003
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" <> wrote in message
news:01cd01c369c3$ddfcd760$...
> Did you create your own file extension or use
> the .htm/.html extension?
>
>
> >-----Original Message-----
> >It works,
> >
> >"Jeremy" <> wrote in message
> >news:025d01c369bf$28500a30$...
> >> Sorry, but I personally won't try it because I don't

> have
> >> an environment where I would want to test this out (and

> I
> >> wouldn't want to risk screwing anything up with .html
> >> files because if you can get to .html files you know IIS
> >> is working).
> >>
> >> However, if somebody would like to try this and not use
> >> an .html extension... Create (make up) a brand new file
> >> extension (maybe have files called mypage.irule, as
> >> opposed to mypage.aspx), add of the info from my

> previous
> >> post in IIS and try it out.
> >>
> >> At least this way you won't risk the possibility of
> >> screwing up anything with .html files.
> >>
> >> And please, if somebody does try this post something in
> >> this newsgroup to let us know if it works.
> >>
> >> Thanks,
> >> Jeremy
> >>
> >> >-----Original Message-----
> >> >If you try it can you please let us know
> >> >
> >> >"Jeremy" <> wrote in message
> >> >news:050b01c369b5$9ce7cd60$...
> >> >> 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
> >> >>
> >> >>
> >> >> >-----Original Message-----
> >> >> >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" <> wrote in
> >> message
> >> >> >news:...
> >> >> >> 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.
> >> >> >
> >> >> >
> >> >> >.
> >> >> >
> >> >
> >> >
> >> >.
> >> >

> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error "Unable to read the project file .. The project file ' ' has been renamed or is no longer in the solution Amarpal ASP General 2 12-31-2011 02:44 AM
ifstream: reopening a file after it was renamed/deleted ultr C++ 2 03-09-2008 09:31 PM
File System Watcher Changed/Renamed event Stephen ASP .Net 1 01-13-2006 10:54 PM
Renamed aspx file in VS .NET 2005, now won't build Brent White ASP .Net 4 10-28-2005 06:23 PM
Including a (renamed) source file is ugly, right? Eric Lilja C++ 3 04-29-2005 06:12 AM



Advertisments
 



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