Last post Oct 22, 2013 03:20 AM by sumitjain231
Oct 22, 2013 12:42 AM|Hisanth|LINK
I have retrived user credential from mssql db. It has username, password and role.
int UId = UserModule.ValidUser(txtEmail.Text.Trim(), txtPassword.Text.Trim());
if (UId != 0 )
SysUser userins = SysUser.GetSysUser(UId);
//Here I have assigned UserName to Context
//How to Assign Role
Here I have assing username for context
I have authenticate with my username in whole application using context
String UserName = Context.User.Identity.Name;
My Question is How to assign Role for this user. Already I have role in db for this user. How to Integrate with Application.
How to assign "Admin" for this user in Context?
Oct 22, 2013 03:20 AM|sumitjain231|LINK
Please go thru following link
you can also look in to