My website has around 100 aspx. Out of this, a certain 20
aspx files should be made available to the users only
if they are logged in. How can I achieve this with the
web.config file?



My website has around 100 aspx. Out of this, a certain 20 aspx files should be made available to t..

Answer / rajesh

<configuration>
<appSettings>
<add key="DSN" value="user id=user;password=user;data
source=192.168.0.102;database=shp_cart"/>
</appSettings>
<connectionStrings>
</connectionStrings>
<system.web>
<authentication mode="Forms">
<forms cookieless="UseCookies"
defaultUrl="private/productcatalogue.aspx"
loginUrl="Index.aspx" timeout="30" protection="All"
name="LoginPage">
<credentials passwordFormat="SHA1"></credentials>
</forms>
</authentication>
<authorization>
<allow users="*"/>
</authorization>
<compilation debug="true"/>
</system.web>
<location allowOverride="true" path="private">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
<compilation debug="true"/></system.web>
</location>
</configuration>

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More ASP.NET Interview Questions

How do I send e-mail from an ASP.NET application ?

1 Answers  


What is an il?

0 Answers  


In asp.net, if a webpage seems too slow to load completely in th ebrowser. In this case what are the checkings or actions you will take to rectify the slowness or which are the factors related to this issue? How we can trace it?

3 Answers  


What is an iHTTPModule, and explain its implementation with its limitations?

1 Answers   Siebel,


What methods are fired during the page load?

3 Answers  






Explain the main function of razor in asp.net? : asp.net mvc

0 Answers  


.net allows which inheritence

6 Answers   AG Technologies, Samcomm,


how we can solve machine key error in asp.net?

3 Answers  


What is strong name and which tool is used for this ?

3 Answers   Patni,


Explain the use of duration attribute of @outputcache page directive.

0 Answers  


What is Master Page in Asp.net?

9 Answers  


What is asp.net response object?

0 Answers  


Categories