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?
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 |
How do I send e-mail from an ASP.NET application ?
What is an il?
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?
What is an iHTTPModule, and explain its implementation with its limitations?
What methods are fired during the page load?
Explain the main function of razor in asp.net? : asp.net mvc
.net allows which inheritence
6 Answers AG Technologies, Samcomm,
how we can solve machine key error in asp.net?
What is strong name and which tool is used for this ?
Explain the use of duration attribute of @outputcache page directive.
What is Master Page in Asp.net?
What is asp.net response object?