如何在不重新加载asp.net中的页面的情况下更改url? [英] How to change url without reloading page in asp.net?

查看:82
本文介绍了如何在不重新加载asp.net中的页面的情况下更改url?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在我的项目中需要这种要求.是否可以在不重新加载asp.net中的页面的情况下更改url?

希望有人帮助我.

谢谢您.

Hello every one,

I need this type of requirement in my project.Is this possible to change url without reloading page in asp.net??

Hope some one help me.

Thanks in advanced.

推荐答案



据我所知不可能

但我为此有一个解决方案

我们可以在不加载页面的情况下向url添加一些信息

就像在javascript
中一样
Hi,

upto my knowledge its not possible

but i''ve one solution for this

we can add some information to url without loading page

just like in javascript

location.href = location.href + '#hi+this+is+additional';



我希望你能理解我的所作所为

最好的



I hope you understood what I did

All the Best


都使用过Ajax控件吗???我的意思是...
脚本控制管理器?_

您可以在所有Web中使用该控件

关于www.google.com:D搜索:脚本控制管理器:D
have you used the Ajax Control??? im mean...
the Script Control Manager?_

you can use the control in all your Web

regards www.google.com :D search for: Script control Manager :D


您可以通过IIS URL重写和ASP.NET路由这两种方式来实现. 参考链接:-
http://stackoverflow.com/questions/7512979/replace-网址中的网址没有刷新 [ http://learn.iis.net/page.aspx/496 /iis-url-rewriting-and-aspnet-routing/ [
You can do so in two ways IIS URL Rewriting and ASP.NET Routing.
Reference Link :-
http://stackoverflow.com/questions/7512979/replace-the-url-without-refreshing-the-page-in-net[^]
http://learn.iis.net/page.aspx/496/iis-url-rewriting-and-aspnet-routing/[^]


这篇关于如何在不重新加载asp.net中的页面的情况下更改url?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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