.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Forum >> Silverlight >> Post New QuestionBookmark and Share Subscribe to Forum

How to make login validation in silverlight(c#)

Posted By: Madhu Gowda     Posted Date: February 17, 2011    Points:2   Category :Silverlight
i have a text box for user name and a password box for password
but i unable to make authentication..please tell me how to compare password characters with actual password....

thnx in advance..

Author: Sunil Yadav       [Moderator]      
Posted Date: February 17, 2011     Points: 5   

Could you please elaborate what exactly you want here.

If you are using Silverlight with Ria service, you can use below code.

private AuthenticationService _userService = RiaContext.Current.Authentication;
private AuthenticationOperation _authDBOp;

string userName = txtUsername.Text;
string password = txtPassword.Password;
if (txtUsername.Text != string.Empty && txtPassword.Text != string.Empty)
if (!_userService.IsBusy)
_authDBOp = _userService.Login(txtUsername.Text, txtPassword.Password);
_authDBOp.Completed += new EventHandler(_authDBOp_Completed);

void _authDBOp_Completed(object sender, EventArgs e)

Let me know if you need any help.

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend