且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在不重新加载asp.net中的页面的情况下更改url?

更新时间:2022-11-04 13:00:24



据我所知不可能

但我为此有一个解决方案

我们可以在不加载页面的情况下向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://***.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://***.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/[^]