User Id :    Password :      New Member   Forgot Password  
Topic: AutoEventWireup attribute in ASP.NET?
Anamika singh
23 Nov 2010 at 01:50 AM
AutoEventWireup attribute in ASP.NET?
Re: AutoEventWireup attribute in ASP.NET?
Gaurav
16 Dec 2010 at 04:02 AM
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

The ASP.NET page framework supports an automatic way to associate page events and methods. If the AutoEventWireup attribute of the Page directive is set to true, the page framework calls page events automatically, specifically the Page_Init and Page_Load methods. In that case, no explicit Handles clause or delegate is needed.
•    AutoEventWireup is an attribute in Page directive.  
•    AutoEventWireup is a Boolean attribute that indicates whether the ASP.NET pages events are auto-wired.
•    AutoEventWireup will have a value true or false. By default it is true.
There is no event or method associated with Page_Load. Those events whose inline event is not there but that should be executed, for that purposed AutoEventWireup="true".

Total Replies: 1
 
Featured Text Ad

Featured Ad