Sheikh parvaz

Sheikh parvaz

  • NA
  • 199
  • 108.7k

IsUserInRole

Oct 13 2012 8:24 AM

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)