Following that, we will look at using declarative and programmatic means for altering the data displayed and the functionality offered by an ASP. As we discussed in the class to determine the user's roles. Figure 2: The User's Role Information Can Be Stored in a Cookie to Improve Performance (Click to view full-size image) By default, the role cache cookie mechanism is disabled.It can be enabled through the Note The configuration settings listed in Table 1 specify the properties of the resulting role cache cookie.The Grid View will include each user's username, email address, last login date, and comments about the user. Row Deleting ' Determine the username of the user we are editing Dim User Name As String = User Grid. One of the easiest ways to confirm an action is through a client-side confirm dialog box.In addition to displaying each user's information, the Grid View will include edit and delete capabilities. For more information on this technique, see Adding Client-Side Confirmation When Deleting.
It then examines how to apply role-based URL authorization rules. When using forms authentication, an authentication ticket is used as an identity token.
Before we can look at applying fine grain authorization rules, however, we first need to create a page whose functionality depends on the role of the user visiting it. Edit Index = -1 Bind User Grid() End Sub Note The Delete button does not require any sort of confirmation from the user before deleting the user account.
Let's create a page that lists all of the user accounts in the system in a Grid View. I encourage you to add some form of user confirmation to lessen the chance of an account being accidentally deleted.
Following that, we will look at using declarative and programmatic means for altering the data displayed and the functionality offered by an ASP. Or we could dictate that only users Tito and Bob were allowed, or indicate that all authenticated users except for Sam were permitted.
In addition to URL authorization, we also looked at declarative and programmatic techniques for controlling the data displayed and the functionality offered by a page based on the user visiting.