Silverlight Forms Authentication -


i have forms authentication in silverlight app working. checking if login successful.

how user credentials user? logged in , ui?

       private void checkforlogin()     {       authentication.authenticationserviceclient proxy = new authentication.authenticationserviceclient();       proxy.isloggedincompleted += new eventhandler<authentication.isloggedincompletedeventargs>(proxy_isloggedincompleted);       proxy.isloggedinasync();      }      void proxy_isloggedincompleted(object sender, authentication.isloggedincompletedeventargs e)     {        if (e.result)       {         //get user credentials here:        }       else       {          var loginwindow = new loginwindow();         loginwindow.closed += new eventhandler(loginwindow_closed);         loginwindow.show();       }     }      void loginwindow_closed(object sender, eventargs e)     {       loginwindow loginwindow = (loginwindow)sender;       bool? result = loginwindow.dialogresult;        if (result.hasvalue && result.value)       {          //get user credentials here:        }     } 

how should proceed here?


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -