Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 the different types of validation controls in asp.net?

0 Answers  


what is the difference between server.Transfer and response.redirect in .net

1 Answers  


What is sta?

0 Answers  


What is a web server? What are the load limits in it?

0 Answers   Wipro,


What is the extension of master page in asp.net?

0 Answers  


when to use webservice and when to use remotong diff between them

3 Answers  


Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?

2 Answers   Siebel Systems,


Difference between datagrid and datareader?

1 Answers  


Can two different programming languages be mixed in a single ASMX file?

1 Answers   IBM, Patni, Wipro,


why many web.config files are used in are project

2 Answers  


About Global .asax ?

6 Answers   Satyam,


What kind of data can be stored in viewstate?

0 Answers  


Categories