GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET
Go To First  |  Previous Question  |  Next Question 
 ASP.NET  |  Question 139 of 164    Print  
What is the use of AutoWireup in asp.net
In which circumstances we have to use this?


  
Total Answers and Comments: 3 Last Update: December 12, 2007     Asked by: Marimuthuraman 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: sush1974
 
If AutoEventWireup is set to "false" see that the page related events are not fired. For example if you write Response.Write("hello world") in the Page_Load event when the AutoEventWireup="false" then the Response.Write.. is not executed.

Above answer was rated as good by the following members:
narsareddya
December 06, 2007 05:06:11   #1  
me.seenu Member Since: November 2007   Contribution: 4    

RE: What is the use of AutoWireup in asp.net
AutoEventWireup attribute is used to set whether the events needs to be automatically generated or not.

In the case where AutoEventWireup attribute is set to false (by default) event handlers are automatically required for Page_Load or Page_Init. However when we set the value of the AutoEventWireup attribute to true the ASP.NET runtime does not require events to specify event handlers like Page_Load or Page_Init.

 
Is this answer useful? Yes | No
December 06, 2007 23:55:33   #2  
sush1974 Member Since: December 2007   Contribution: 1    

RE: What is the use of AutoWireup in asp.net
If AutoEventWireup is set to "false" see that the page related events are not fired. For example if you write Response.Write("hello world") in the Page_Load event when the AutoEventWireup "false" then the Response.Write.. is not executed.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
December 12, 2007 11:29:13   #3  
kapil_deo Member Since: December 2007   Contribution: 2    

RE: What is the use of AutoWireup in asp.net
The AutoWireup attribute is either set as True or False. The attribute allows you to fire the events written in code behind file.

If this page level attribute is set to False then the code behid Events will not fire automatically. For E.g if there is Event for the Page load (Page_load) on code behind file and attribute is set to false then this event will not fire if page loads up in browser.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape