开发者

What ASP.NET MVC Route controls the appearance of hashes in URIs?

开发者 https://www.devze.com 2022-12-25 14:05 出处:网络
I have integrated a Silverlight Navigation Application in an ASP.NET MVC web. However when Silverlight calls for its default page, say, IndexPage ASP.NET MVC displays the route as:

I have integrated a Silverlight Navigation Application in an ASP.NET MVC web. However when Silverlight calls for its default page, say, IndexPage ASP.NET MVC displays the route as:

http://localhost/#/IndexPage

I have tried to get ASP.NET MVC to respond to this route:

http://localhost/#IndexPage

but I am unable to find a configuration that works with this. Does ASP.NET MVC rout开发者_如何学Ces respond to hashes in general?


Silverlight's navigation system and ASP.NET MVC routes are completely separate here. The hash is a client-only thing and it can't be expected for ASP to reliably get that info.

0

精彩评论

暂无评论...
验证码 换一张
取 消