Powered by Blogger.

Saturday, March 15, 2014

URL Authorization examples

Here we will discuss about some typical URL authorization examples.

You can also read:

- Asp.Net MVC4 sample application

- Ten Tips for Optimizing SQL Server Performance

- Set Enter and Esc Keys in Windows application C#.Net

The below list shows the syntax for some typical URL authorization examples:

Deny access to the anonymous account

<deny users="?" />

Deny access to all users

<deny users="*"/>

Deny access to Manager role

<deny roles="Manager"/>

Forms authentication example
<authentication mode="Forms">
<forms name=".ASPXUSERDEMO" loginUrl="login.aspx" protection="All" timeout="60" />
<deny users="aspdotnethelp24@gmail.com" />
<deny users="?" />