ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  ASP.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
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?
 Question Submitted By :: Raghu_113
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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
# 1
<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 2 No
Rajesh
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
What is dataset ? Infosys10
1.can we add connection string in global.asax?????????? 2.what are the default files included when we create new web application???? Sparsh6
Uses of CLR ? TCS2
Differences between session state and Application state?  2
Types of caching ? TCS3
How do you create a permanent cookie?  4
Describe the difference between inline and code behind.  2
Difference between ASP Session and ASP.NET Session?  1
How to manage pagination in a page?  2
To which class you load XML or Related Data  1
How to write unmanaged code and how to identify whether the code is managed /unmanaged? Accenture4
define silverlight and advantages ?  2
accessing a textbox that was created dynamically? for (int i = 0; i < t1; i++) { TextBox t2 = new TextBox(); t2.ID = "adf" + i; PlaceHolder1.Controls.Add(t2); } accessing data entered in the above created controls.  1
What are the Application_Start and Session_Start subroutines used for?  5
how to update data using store procedure  1
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? Techno-Solutions1
What is view state and how this can be done and was this there in asp? Accenture8
what is caching? Microsoft2
Types of authentications in ASP.NET ? Accenture5
Can private assembly be used for more than one application? If so how? Satyam6
 
For more ASP.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com