What is the use of AutoWireup in asp.net

In which circumstances we have to use this?

Questions by Marimuthuraman

Showing Answers 1 - 4 of 4 Answers

me.seenu

  • Dec 6th, 2007
 

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.

  Was this answer useful?  Yes

sush1974

  • Dec 6th, 2007
 

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.

kapil_deo

  • Dec 12th, 2007
 

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.

  Was this answer useful?  Yes

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

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions