RE: Regarding ASP.NET Web Application



Hello Anbaesivam,

I think Asp.Net Membership and Role Manager can achieve it as you wish.
Please check the following reference:

http://weblogs.asp.net/scottgu/archive/2006/05/07/ASP.NET-2.0-Membership-and
-Roles-Tutorial-Series.aspx

In following reference, you can get some helpful samples of it:
http://www.dotnetjunkies.com/QuickStartv20/aspnet/doc/security/membership.as
px

The following link is about "Authorizing Access to a Page with Role
Manager" that is what you need I think.
http://www.dotnetjunkies.com/QuickStartv20/aspnet/doc/security/membership.as
px#auth

Furthermore, I will make a sample for you.

For example, I created two roles("user" and "admin") and there are two
folders(securedfolder and adminfolder) in the application.
1. The anonymous users can't access any pages in "securedfolder" or
"adminfolder" folder.
2. The managed users with "user" role can only access the pages in
"securedfolder" folder, but not for "adminfolder" folder.
3. The managed users with "admin" role can access any pages in the
application.

After deploying Membership and the roles for users, we need configure the
authorizing access to a folder in Web.Config.

<configuration>
<location path="securedfolder">
<system.web>
<authorization>
<deny users="?"/> <!--deny any anonymous
users-->
<allow users="*"/> <!--allow any managed
users-->
</authorization>
</system.web>
</location>
<location path="adminfolder">
<system.web>
<authorization>
<allow roles="admin"/> <!--allow any users
with "admin" role-->
<deny users="*"/> <!--deny any
anonymous/managed users-->
</authorization>
</system.web>
</location>
</configuration>

To redirect to the login page if authentication is not successful, please
deploy the following code in section "system.web" in Web.Config.

<authentication mode="Forms">
<forms name=".ASPXUSERDEMO" loginUrl="login.aspx"
protection="All" timeout="60"/>
</authentication>



Sincerely,

Vince Xu

Microsoft Online Support

£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

MSDN Managed Newsgroup support offering is for non-urgent issues where an
initial response from the community or a Microsoft Support Engineer within
2 business day is acceptable. Please note that each follow up response may
take approximately 2 business days as the support professional working with
you may need further investigation to reach the most efficient resolution.
The offering is not appropriate for situations that require urgent,
real-time or phone-based interactions. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx

£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½£½

.



Relevant Pages

  • Re: Add User to Local Group using WMI?
    ... I explored ways to deal with local group management about 4-5 years and the only built-in solution then was the WinNT provider. ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ... initial response from the community or a Microsoft Support Engineer within ...
    (microsoft.public.win32.programmer.wmi)
  • RE: How can I install SQL Server Managment Studio (2005)?
    ... Did you choose "Management Toos" in the Advanced option during your setup process? ... Microsoft Online Community Support ... Please feel free to let my manager ... or a Microsoft Support Engineer within 1 business day is acceptable. ...
    (microsoft.public.sqlserver.setup)
  • RE: Hide Attributes without completely hiding Dimension Members
    ... Unfortunately SSAS 2005 does not provide such function in such a thin granular level. ... Microsoft Online Community Support ... Please feel free to let my manager ... or a Microsoft Support Engineer within 1 business day is acceptable. ...
    (microsoft.public.sqlserver.olap)
  • Re: Unable to open msg store if first prompt for password canceled
    ... I am performing research on this issue and may need more time to get back to you. ... We welcome your comments and suggestions about how we can improve the support we provide to you. ... Please feel free to let my manager know what you think of the level of service provided. ... The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. ...
    (microsoft.public.win32.programmer.messaging)
  • RE: 2000 AS SP4 RepositoryUser and OLAP Admins Group
    ... That did it (after checking off msdb in Permissions tab on the Login ... Open SQL Server Enterprise Manager, expand Security folder, right click Logins, click ... Microsoft Online Community Support ... or a Microsoft Support Engineer within 1 business day is acceptable. ...
    (microsoft.public.sqlserver.olap)

Loading