In which situation or in which scenario this attribute is useful in our application - AutoEventWireup ?
Just give me a real time example or if you have utilized this attribute in ur project ?
Already read the definition and explanation of this attribute in MSDN, so please dont just give the definition.
In which scenario it really helps ?
Loading

Pravin GhadgePosted Dec 22, 2011, 7:29 AM
Ans:Yes it will not called.
deepak choudharyPosted Dec 23, 2011, 2:26 AM
Manikavelu VelayuthamPosted Dec 22, 2011, 7:20 AM
Now if i run the appilcation, does the page_init, preinit will be called or not ?
As per your reply it should not call the above events unless you manually attach the event to the page, right ?
if so we can boycott some of the events and makes the performance better, right ?
correct me if I am wrong.
Pravin GhadgePosted Dec 22, 2011, 7:11 AM
If we are working in highly traffic environment
then it will affect performance. Because it searches for methods at run time.
2)If we set it true then framework will automatically call events. this can result in double calling of events.
I hope this will clear ur doubt.
Manikavelu VelayuthamPosted Dec 22, 2011, 6:59 AM
In which scenario we will set the AutoEventwireup attribute to false in C# and if so Why ?
Pravin GhadgePosted Dec 22, 2011, 6:44 AM
I dont think so, it will help us to implement any functionality.
If we have set this attribute as false. Page_load,init event of Page cannot be executed.
But if we still want to execute it , we can achive this by:
Manikavelu VelayuthamPosted Dec 22, 2011, 6:09 AM
Does this attribute helped you to implement any of the functionality in ur project ?
janaki janakiPosted Dec 22, 2011, 5:51 AM
it will used to fire the events automaticlly like page load event in aspx.cs page like that ,it will auto matically fires,Example button is there it will fire when we click the button only
Pravin GhadgePosted Dec 22, 2011, 5:48 AM
AutoEventWireup is attribute of Page directive.
AutoEventWireup="true" is used for page event(For eg:Page load).
For eg:
If we set AutoEventWireup="false"
then Page_Load event cannot be executed.
Usage:
If we set AutoEventWireup="false" it improves performance.