5
Reply

IsUserInRole

Sheikh parvaz

Sheikh parvaz

Oct 13 2012 8:24 AM
3k

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)