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

Describe a bubbled event and how it is used ?

0 Answers   Siebel,


and can u telme how to explain about our job profile if i have 3years of it experiance in dotnet domain and where to start and where to end , and what shoul i tel and what not(can i mention my education ,and family details,......)i am confusiong a lot. can i ask one with your permision, if u have question that u u went tcs interview as 3+years exp so he/she asked tel me about your profile how can u tel and where to stop. please help me as simple as possible i am facing lot in this..............plese can anyone help me i am awaiting for your reply.

1 Answers   TCS,


What is difference between session and cookie?

0 Answers  


What is the equivalent of date() and time() in asp.net?

0 Answers  


In early binding will the method invoked on com component will verify it?s existance in the system or not ?

0 Answers   DELL,






what is stateless ?

2 Answers   TCS,


Which class is used to send an email message from an ASP.NET Web page?

0 Answers   Sans Pareil IT Services,


In this case if exception occure in Database which catch block will be exexcuted?

1 Answers   Microsoft,


How long does an http session last?

0 Answers  


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

0 Answers   CTS,


what is a .xap file? Explain with an example.

0 Answers  


How do you remove duplicates without using remove duplicate stage?

0 Answers  


Categories