
Hi Bhupendra,
Autoeventwireup is property of @page directive which can be set to true or false.
If set to true : Events for ASP .net pages are automatically connected to event handling functions.
if set to false : Then we have to explicitly bind the event to a method as bellow
protected void Page_Load(object sender, EventArgs e)
{
Response.Write("I am in page load");
}
override protected void OnInit(EventArgs e)
{
this.Load += new EventHandler(this.Page_Load);
}
by default Autoeventwireup property is true
Bhupentiwari, if this helps please login to Mark As Answer. | Alert Moderator