What Are The Difference Between AutoEventWireup="true" and
AutoEventWireup="False"
Answer Posted / kapil sharma
Dont be too confuse in this question for 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)
{
// ...
}
So by default its means all event automatically wire up
when page load and if its false we have do some extra
work....
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is a windows service?
How do you create a master page?
How does session work in asp net?
i develop a web application and i gave security setting i.e autherization and athentication now it work properly on my local system , now question is ,is this security setting ie autherization and athentication which i gave in web.config will it be enough strong to secure my application on internet or i have to use some 3rd party tool or software to get security .if yes --how ? if no--what is the alternate?
What are the media types of http requests and response?
How could you modify xaml content from javascript?
What are ASHX files?
What is session mode in asp.net?
explain code with multi inhertance
Explain the significance of routing? : asp.net mvc
What is razor? : asp.net mvc
Give an example of what might be best suited to place in the application_start and session_start subroutines?
Is asp.net 64-bit enabled? How?
What is the significance of proxy user?
What do you mean by query string?