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 |
What are validator? How do you disable them?
hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me.
How do you access individual items of an Master Page
What are the types of validation in asp net?
Define static function?
Which method is used to force all the validation controls to run?
Difference between Response.redirect vs server.transfer?
How does the browser enable AutoPostBack functionality?
What are the cookies types in asp.net?
Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?
0 Answers InfoAxon Technologies,
What is a gridview in asp.net?
What does asp.net stand for?