How do you use Async Web Service to perform authentication?
I am new to Silverlight and need to user a WCF Service (dataService) to authenticate against a database.
I can return the results from the database but, these are in the completed event. If I use a property and the OnPropertyChanged event to bind to my login then I may run into the situation where the code sees the property before it's set.
A开发者_JAVA百科ny thoughts?
Just make sure and wait for the property to be set, then do your authentication afterward.
One way to do this would be to an attached property to your bound value, gave the attached property update the source on each keystroke.
精彩评论