How to retrieve a data in a Variable from EntityDataSource
May be this is too trivial question.
I use C#, asp.net 4, EF4,
I have a page with a DetailsView contr开发者_开发技巧ol is connected with EntityDataSource. All is working.
In code behind I need to create a variable that will populate with data from EntityDataSource, lets imagine field UserId.
My questions: How to retrieve and use data from EntityDataSource?
Thanks guys. I am very beginners you advices are really important for me! Thanks
Maybe the DetailsView.DataKey Property will help you
精彩评论