开发者

Silverlight ASP.MVC routes

开发者 https://www.devze.com 2023-01-06 10:54 出处:网络
how can I emulate stuff like <%=Url.Action(\"Action\",\"Controller\" ... where I am using Silverlight 4 as the client to ASP.MVC in say OpenReadAsync?

how can I emulate stuff like <%=Url.Action("Action","Controller" ... where I am using Silverlight 4 as the client to ASP.MVC in say OpenReadAsync? Aside from passing it a Uri with the full path as a st开发者_StackOverflow社区ring - not preferred. Cheers


You can't. Those are two different applications and the Silverlight application knows nothing about the routes you could have set in your ASP.NET MVC application.

0

精彩评论

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

关注公众号