c# - Creating New Roles Error -


How do I add the role of this website?

I was lost in step 4. Creating new roles ..

  Secure Zero CreateRoleButton_Click (Object Sender, EventArgs e) {string newRoleName = RoleName.Text.Trim (); If (roles! Reelxists (Narylenam)) // Create Role Roles. Creareol (Neurolam); RoleName.Text = string.Empty; }   

After my work I did this .. I found this error: Name 'roles' is not present in the current context ..

What did I do? > Step 2: Define and configure roles framework provider

em> and step 3: roles API check ? Please make sure your codebehind reference System.Web.Security namespace.

Step up to ensure that all configurations are made to implement role-based authentication.

For more information see, which explain the full configuration for roles.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -