What Are The Difference Between AutoEventWireup="true" and
AutoEventWireup="False"
Answer Posted / uma
Dont read all the those things simply understand
actually AutoEventWireup is written in page directive like
this
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default2.aspx.cs" Inherits="Default2" %>
by default it is "true", that means all the events that are
automatically rises when page is loading
if AutoeventWireUp=false then we have to manually write
events and delegates like this
public _Default() // ctor
{
Load += new EventHandler(Page_Load);
PreInit += new EventHandler(Page_PreInit);
}
protected void Page_Load(object sender, EventArgs e)
{
// ...
}
protected void Page_PreInit(object sender, EventArgs e)
{
// ...
}
| Is This Answer Correct ? | 20 Yes | 1 No |
Post New Answer View All Answers
Why do you use the app_code folder in asp.net?
Explain the difference between singleton and single call?
Where sessions are stored in asp.net?
What is considered a service provider?
Explain the difference between debug.write and trace.write?
COM+ Used ________________ Isolation Level
1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?
i want the asp.net technical questions and answeres
How do cookies work? Give an example of their abuse.
Explain Features in ASP.NET
What is paging in context of Memory?
Explain the difference between page.registerclientscriptblock and page.registerstartupscript?
What are the differences between primary foreign and unique keys?
Is a dll file an executable?
Explain server side state management system.