我有一个网站,其中.Aspx页面存在但在用户端我想将它们显示为.Htm页面 [英] I Have A Website In Which, .Aspx Pages Present But At The User Side I Want To Display Them As .Htm Pages

查看:47
本文介绍了我有一个网站,其中.Aspx页面存在但在用户端我想将它们显示为.Htm页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请发给我符合上述问题的相应代码..

使用Global.asax页面需要的答案

解决方案

此代码可以在浏览器中更改URL而无需重新加载页面。 *浏览器必须支持HTML5。



如果您的页面是yourPage.aspx并且您想将其更改为yourPage.html,请使用以下代码。



 


document ).ready( function (){
history .pushState( ./ yourPage.html);
});


Please send me the appropriate code that matches the above question..
Answers needed using Global.asax page

解决方案

This code can change URL in browser without reloading page. *Browser must support HTML5.

If your page is yourPage.aspx and you want to change it to yourPage.html use below code.


( document ).ready(function() { history.pushState("","", "./yourPage.html"); });


这篇关于我有一个网站,其中.Aspx页面存在但在用户端我想将它们显示为.Htm页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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