5
Answers

IsUserInRole

Sheikh parvaz

Sheikh parvaz

12y
3k
1

protected

void SetDestinationUrl(object sender, EventArgs e)

{

TextBox txtBox = (TextBox)LoginUser.FindControl("UserName"); if (Roles.IsUserInRole(txtBox.Text, "Guest"))

{

Response.Redirect(

"UserIndex.aspx");

if (Roles.IsUserInRole(txtBox.Text, "Administrator"))

{

Response.Redirect(

"AdminIndex.aspx");

}

}



The above code is showing me error by saying "The type or namespace anme IsUserInRole does not exist....."

Kindly help me out of it..

 


Answers (5)