Hi,
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
FormsAuthentication.RedirectFromLoginPage(userins.FirstName, false);
//How to Assign Role
Response.Redirect("../Index.aspx");
}
Here I have assing username for context
FormsAuthentication.RedirectFromLoginPage(userins.FirstName, false);
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 d ...
Go to the complete details ...