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

What are validator? How do you disable them?

0 Answers  


hi .net gurus. plz if any one has dumps on 70-631 and 70-541 on windows sharepoint services kindly mail me.

0 Answers  


How do you access individual items of an Master Page

5 Answers   TCS,


What are the types of validation in asp net?

0 Answers  


Define static function?

0 Answers  






Which method is used to force all the validation controls to run?

0 Answers  


Difference between Response.redirect vs server.transfer?

0 Answers  


How does the browser enable AutoPostBack functionality?

2 Answers  


What are the cookies types in asp.net?

0 Answers  


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?

0 Answers  


What does asp.net stand for?

0 Answers  


Categories