Roles and Membership
-
Hey everyone, Can we allow/deny access to a particular page to a particular user. Please dont bother about the reason why this functionality is required. Question is, can we configure our application this way. I have been asked this question many a times in interviews And still Im not sure this can be done or not. Any help will be appreciated. Thanks
-
Hey everyone, Can we allow/deny access to a particular page to a particular user. Please dont bother about the reason why this functionality is required. Question is, can we configure our application this way. I have been asked this question many a times in interviews And still Im not sure this can be done or not. Any help will be appreciated. Thanks
vishwjeet wrote:
Question is, can we configure our application this way.
Of course we can. What could possibly stop you ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
vishwjeet wrote:
Question is, can we configure our application this way.
Of course we can. What could possibly stop you ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
How to do it? While configuring the application using the Configuration Tool, we can allow/deny access only to the folders within the project directory.
Oh, I see. I have no idea, I never use the built in rubbish, I write my own code to do things like that.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Hey everyone, Can we allow/deny access to a particular page to a particular user. Please dont bother about the reason why this functionality is required. Question is, can we configure our application this way. I have been asked this question many a times in interviews And still Im not sure this can be done or not. Any help will be appreciated. Thanks
why dont you make your own security handler and every aspx requests are processed by it. Check for the session id there, and do accordingly. .. :cool:
Abhishek Sur My Latest Articles Working with Excel using MDAC
Basics on LINQ and Lambda Expressions
Create .NET Templates -
Hey everyone, Can we allow/deny access to a particular page to a particular user. Please dont bother about the reason why this functionality is required. Question is, can we configure our application this way. I have been asked this question many a times in interviews And still Im not sure this can be done or not. Any help will be appreciated. Thanks
-
Hey everyone, Can we allow/deny access to a particular page to a particular user. Please dont bother about the reason why this functionality is required. Question is, can we configure our application this way. I have been asked this question many a times in interviews And still Im not sure this can be done or not. Any help will be appreciated. Thanks
If you want to specify page or full folder that don't need to be authenticated, use <location> tag in web.config. For example <location path="yourFoldername"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location> The <b>path </b>attribute can be used to identify a specific file or child directory to which unique configuration settings apply.
-
If you want to specify page or full folder that don't need to be authenticated, use <location> tag in web.config. For example <location path="yourFoldername"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location> The <b>path </b>attribute can be used to identify a specific file or child directory to which unique configuration settings apply.