使用Framework 3.5进行路由 [英] Routing with Framework 3.5
本文介绍了使用Framework 3.5进行路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好。
我遇到问题,想和大家商量一下
我有一个页面有url的问题http:// localhost / xyz / user = username
服务于id为 username 的特定用户,并使用名为 user 的查询字符串变量
所以我希望这个网址改为http:// xyz / username
其中用户名代表相同的querystring参数,借助路由
我正在使用.NET framework 3.5
Hello all
I am facing a problem and want to discuss to you all
I have a issue that a page having url http://localhost/xyz/user=username
serves to the particular user whose id is username and goes with the query string variable named user
So i want this url to change to http://xyz/username
where username stands for the same querystring parameter with the help of routing
I am using .NET framework 3.5
推荐答案
我认为如果升级到ASP.NET 4.0,你可以使用新发布的功能路由引擎
请参阅以下链接
http://www.dotnetfunda .com / articles / article1450-aspnet-40-routing.aspx [ ^ ]
I think if you upgrade to ASP.NET 4.0 you can use the newly shipped feature routing engine
see the below link
http://www.dotnetfunda.com/articles/article1450-aspnet-40-routing.aspx[^]
这篇关于使用Framework 3.5进行路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文