.aspx文件可以重命名为.htm吗? [英] Can a .aspx file be renamed to .htm?

查看:80
本文介绍了.aspx文件可以重命名为.htm吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果

..aspx文件的扩展名为.htm,代码隐藏和所有ASP.NET功能是否仍然可用?我想这可以归结为

页面指令是否仍然有用。


感谢您的帮助。

解决方案

不,有一个ISAPI过滤器只处理具有正确的

文件扩展名的文件...如果你重命名它,它就不会被处理正确..


" Bruce W ... 1" <峰; br *** @ noDirectEmail.com>在消息中写道

新闻:3F *************** @ noDirectEmail.com ...

代码落后和如果
.aspx文件具有相反的.htm扩展名,那么所有ASP.NET功能仍然有用吗?我想这归结为
页面指令是否仍然有用。

感谢您的帮助。



在IIS应用程序配置中,应用程序映射中没有.htm文件类型的

条目。


我不确定,但我如果你添加了一个.htm

文件类型,请设置ASP.NET ISAPI

DLL的可执行路径,并将动词设置为相同一个.aspx

文件(GET,HEAD,POST,DEBUG)你可以让它工作。


祝你好运,

Jeremy

-----原始消息-----
不,有一个ISAPI过滤器只处理那些
具有正确文件扩展名的文件...如果你重命名它,它就不会正确处理
..
Bruce W ... 1 <峰; br *** @ noDirectEmail.com>在消息中写道
新闻:3F *************** @ noDirectEmail.com ...

代码隐藏和所有ASP.NET功能
如果.aspx文件具有替代.htm扩展名仍然有用吗?我想
归结为页面指令是否仍然有用。

感谢您的帮助。





如果您尝试一下,请告诉我们


Jeremy < JK ******* @ nohotmailspam.com>在留言中写道

news:05 **************************** @ phx.gbl ... < blockquote class =post_quotes>在IIS应用程序配置中,在.htm文件类型的应用程序映射中没有
条目。

我不确定,但我会猜测如果添加.htm
文件类型,请将可执行路径设置为ASP.NET ISAPI
DLL,并将动词设置为与.aspx
文件的动词相同(GET,HEAD,POST,DEBUG)你可以开始工作。

祝你好运,
杰里米

- ---原始消息-----
不,有一个ISAPI过滤器只处理带有

文件扩展名的


文件...如果你重命名它,它就不会被正确处理


..


Bruce W ... 1 <峰; br *** @ noDirectEmail.com>在消息中写道
新闻:3F *************** @ noDirectEmail.com ...

代码隐藏和所有ASP.NET如果.aspx文件具有相反的.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.

解决方案

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" <br***@noDirectEmail.com> wrote in message
news:3F***************@noDirectEmail.com...

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.



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 correctfile extension... if you rename it, it won''t be processed correctly..
"Bruce W...1" <br***@noDirectEmail.com> wrote in message
news:3F***************@noDirectEmail.com...

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.


.



If you try it can you please let us know

"Jeremy" <Jk*******@nohotmailspam.com> wrote in message
news:05****************************@phx.gbl...

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" <br***@noDirectEmail.com> wrote in message
news:3F***************@noDirectEmail.com...

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.


.



这篇关于.aspx文件可以重命名为.htm吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆