C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Articles » ASP.NET/Web Applications »

What is the use of AutoWireup in asp.net


Posted Date: 08 May 2008    Resource Type: Articles    Category: ASP.NET/Web Applications
Author: KamalMember Level: Gold    
Rating: 1 out of 5Points: 5



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.

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.




Responses

Author: Sebastian    13 Jun 2008Member Level: Gold   Points : 1
This is very informative. Thanks for sharing the details.


Author: Gaurav Agrawal    20 Jun 2008Member Level: Silver   Points : 2
Hi
really cool.
you have explaint it very clearly.
It is very much clear now the concept of autoeventwireUp attribute.
Keep Posting and help your fellow developers

Regards
Gaurav


Author: Gaurav Agrawal    20 Jun 2008Member Level: Silver   Points : 2
Hi
really cool.
you have explaint it very clearly but with one mistake the default value of this attribute is true and not false which you have mentioned in your article.
It is very much clear now the concept of autoeventwireUp attribute.
Keep Posting and help your fellow developers

Regards
Gaurav


Author: Bunty    27 Jun 2008Member Level: Diamond   Points : 2
Hi,

Really ausum.

It's working and i try it.

Keep posting.

Thanks for sharing and upgrading my knowledge.

Thanks and Regards
S.S.Bajoria


Author: LOGESHWARAN    03 Feb 2009Member Level: Gold   Points : 0
GOOD ONE


Author: sangeetha    27 Apr 2009Member Level: Gold   Points : 2
The default value for auto eventwireup=true is false bcoz the default value of
autoeventwireup=false in c# A false value indicates that you must explicitly write a
code to bind events related to a page ,such as the load event of a page and true value indicates that events will be generated automatically


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Exploring XHTML, the dotnet way!
Previous Resource: Delete confirmation in ASP.NET gridview control
Return to Discussion Resource Index
Post New Resource
Category: ASP.NET/Web Applications


Post resources and earn money!
 
Related Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use