开发者

How to reference the WebContext.Current.User from a separate controls project?

开发者 https://www.devze.com 2023-03-19 05:16 出处:网络
I have a [appname].[ui] proj开发者_如何学运维ect that exists separate from my main silverlight 4 application. I do need to be able to bind to the WebContext.Current.User object in one of those control

I have a [appname].[ui] proj开发者_如何学运维ect that exists separate from my main silverlight 4 application. I do need to be able to bind to the WebContext.Current.User object in one of those controls and I don't know how to get an instance of it since it is in the Generated_Code hidden folder in the [application].web.g.cs file.

any ideas?


Create a RIA Services Class Library project containing the WebContext class.
Other client side projects can reference that class library project. for instructions on how to structure your solution, you can refer here.

0

精彩评论

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