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
What does AspCompat="true" mean and when should I use it?
 Question Submitted By :: Swapna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What does AspCompat="true" mean and when should I use it?
Answer
# 1
AspCompat is an aid in migrating ASP pages to ASPX pages. 
It defaults to false but should be set to true in any ASPX 
file that creates apartment-threaded COM objects--that is, 
COM objects registered ThreadingModel=Apartment.

That includes all COM objects written with  Visual Basic 
6.0. AspCompat should also be set to true (regardless of 
threading  model)  if the page creates COM objects that 
access intrinsic ASP objects such as Request and Response. 
The following directive sets AspCompat to true:


         <%@ Page AspCompat="true" %>  
Setting AspCompat to true does two things. First, it makes 
intrinsic ASP objects available      to the COM components 
by placing unmanaged wrappers around the equivalent ASP.NET 
objects. 

Second, it improves the performance of calls that the page 
places to apartment- threaded COM objects by ensuring that 
the page (actually, the thread that processes the  request 
for the page) and the COM objects it creates share an 
apartment. 

AspCompat="true" forces ASP.NET request threads into single-
threaded apartments (STAs). If those threads create COM 
objects marked ThreadingModel=Apartment, then the objects 
are created in the same STAs as the threads that created 
them. Without AspCompat="true," request threads run in a 
multithreaded apartment (MTA) and each call to an STA-based 
COM object incurs a performance hit when it's  marshaled 
across apartment boundaries.

Do not set AspCompat to true if your page uses no COM 
objects or if it uses COM objects that don't access ASP 
intrinsic objects and that are registered 
ThreadingModel=Free or  ThreadingModel=Both.
 
Is This Answer Correct ?    2 Yes 1 No
Swapna
 

 
 
 
Other ASP.NET Interview Questions
 
  Question Asked @ Answers
 
Which template must you provide, in order to display data in a Repeater control? Wipro2
hi i have a problem regarding to datagrid in aspdotnet.i have a datagrid in my application.i have to place add,edit,delete buttons or links what ever it may be. now the problem is if i click on add button then the page has to redirected to another form called "xyz.aspx" and if i click on edit button the page has to redirected to another form called "abc.aspx".i am phasing the problem that if where ever i click on the datagrid the cursor goes to gv1_SelectedIndexChanged event.please tell me the solution about the code. Lambent4
What tag do you use to add a hyperlink column to the DataGrid?  1
version information of assembly consist of _________ values. AG-Technologies3
4. How do you plan to achieve these goals? Swatz-Oils2
what is session ?how sessions are handeled in application? write the clauses of sql server in their order. Olive-Tech2
Different type of validation controls in asp.net ? Keane-India-Ltd1
Why is it important to maintain session state?  1
which scripting is used browser by server when we use validation controls. 1.javascript 2.vbscript 3.jscript 4.perl Satyam8
we can able to display a MessageBox in asp .net without using any script langages? ABC5
To which class you load XML or Related Data  1
What are the different methods that are used during the page load?  1
What Name space does the web page belon in the .net framework class hierarchy? Wipro1
what are the new server controls added in Asp.net 2.0? DOSPL1
When is validation done on the client? How does client-side validation improve the efficiency of an application?  1
difference between gridview,data list and repeater control Olive-Tech4
Where is ViewState information stored? HCL6
How do you perform validations ? Microsoft1
Difference between datareader and dataset ? Microsoft2
If Asp Dot Application is stateless what happened? during designing TCS3
 
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