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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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
 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 1 No
Rajesh
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Features of a dataset ? Accenture3
which one is faster execute reader, scalar, execute non query ? Minecode13
Differentiate session and cookie  1
What was the difference between machine.config and web.config files Assurgent7
What ASP.NET object encapsulates the state of the client and the browser? a) The Session object b) The Application object c) The Response object d) The Request object e) The Server object Syntax-Softtech2
Difference between ASP Session and ASP.NET Session?  1
In what order do the events of an ASPX page execute, As a developer is it important to understand these events?  2
code for inserting images into gridview colomns from database HP3
You need to retrieve data from a Microsoft SQL Server 2000. Currently you are using an oleDbConnection object to connect to the database server. You need to be able to retrieve the data from the database server in XML format. Which approach would be the most efficient? Select all that apply. Each answer constitutes part of the whole answer. a) Change to the SQL .NET provider. b) Use the ExecuteXmlReader() method of the xxxCommand object c) Use the DOM to create the XML document. d) Use the XmlDocument.Load() method to create the XML Document. Syntax-Softtech1
What is boxing and unboxing ? Accenture6
What does this do? sn -t foo.dll  1
What tags do you need to add within the asp:datagrid tags to bind columns manually?  2
Explain the differences between Server-side and Client-side code?  2
What definition correctly defines a label server control with the name set to lblHoop? a) <asp:Label name=?lblHoop? runat=?server? /> b) <Label id=?lblHoop? runat=?server? /> c) <asp:Label id=?lblHoop? runat=?server? /> d) <server label name=?lblHoop? runat=?asp? /> Syntax-Softtech1
what is CLR? PrimeLine3
Explain what a diffgram is, and a good use for one?  1
What are the data types is possible to store in session? and can we store dataset in session? eMids3
What is the difference between and ActiveX dll and control? Microsoft2
difference between writing connection string in web.config through connection string and appsettings iSoft2
What is the lifespan for items stored in ViewState?  2
 
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