Questions tagged [autoeventwireup]
18 questions
57
votes
3 answers
What does AutoEventWireUp page property mean?
I don't understand what the AutoEventWireUp page property is responsible for.
I've read through this article, but even that I don't understand.

chester89
- 8,328
- 17
- 68
- 113
9
votes
1 answer
How does Global.asax PostAuthenticateRequest event binding happen?
How can I use the PostAuthenticateRequest event of Global.asax? I'm following this tutorial and it mentions that I have to use the PostAuthenticateRequest event. When I added the Global.asax event it created two files, the markup and the code-behind…

Tux
- 105
- 1
- 2
- 4
6
votes
1 answer
PreRender in ASP.NET Master Page not firing
Both Page_PreRender and Page_Load do not work in the Master Page I am working with. Page_Init does, however, for any reason. AutoEventWireup is set to true.
public partial class MyMaster : MasterPage
{
public MyMaster()
{
// tried…

Matthias Meid
- 12,455
- 7
- 45
- 79
4
votes
2 answers
AutoEventWireup and base.OnLoad(e) Calling Self resulting in Stack Overflow
Using VS2008, C#. When AutoEventWireup is set to true and in a webform I call base.OnLoad(e) like:
protected void Page_Load(object sender, EventArgs e)
{
base.OnLoad(e);
}
The base.OnLoad(e) ends up calling Page_Load (calls itself). This ends…

Ben Amada
- 706
- 11
- 22
4
votes
1 answer
Asp.net's AutoEventWireup and reflection?
AutoEventWireup uses reflection searching page methods by page_eventName
msdn
When AutoEventWireup is true, handlers are automatically bound to
events at run time based on their name and signature. For each event,
ASP.NET searches for a method…

Royi Namir
- 144,742
- 138
- 468
- 792
3
votes
2 answers
AutoEventWireup false on a page with many controls (C#)
Using C#, there is a web form with many controls where the AutoEventWireup is set to false.
This forces you to initialize the handlers that you need in the ctor or by overriding OnInit.
What about the handling needed for the controls on the…
anon
3
votes
1 answer
Asp.Net AutoEventWireup - what is it doing code wise
I've been digging thru the Page, TemplateControl and Control classes in reflector trying to figure out where AutoEventWireUp property is actually getting used. I've failed miserably.
My understanding of AutoEventWireUp is sketchy but I think it…

handles
- 7,639
- 17
- 63
- 85
3
votes
2 answers
What does the ASP.net AutoEventWireup property do?
I'm coming from an ASP background and learning ASP.NET. I wanted to know whether AutoEventWireup property wireup the Control events also(like Button_Click) or just the Page events?
I read elsewhere in SO that if you set it to TRUE & also provide…

Jaison Varghese
- 1,302
- 1
- 13
- 24
2
votes
2 answers
ASP.NET MVC AutoEventWireup required?
when i create an aspx page, the header includes something like this:-
<%@ Page
Language="C#"
MasterPageFile="~/Views/Shared/Site.Master"
AutoEventWireup="true"
CodeBehind="Create.aspx.cs"
Inherits="My.Mvc.Views.Blah" %>
With…

Pure.Krome
- 84,693
- 113
- 396
- 647
1
vote
1 answer
Add button to existing site
There is an existing site with no compiled DLLs, it's all .aspx.vb and .aspx files.
First question is that I can see
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master"
MaintainScrollPositionOnPostback="true"…

RichardTheKiwi
- 105,798
- 26
- 196
- 262
1
vote
1 answer
Where can I see how events are wired up in ASP.NET
My noodle had a spark of sentience. I was going through my ASP.NET pages, where I noticed
Hang on, Page_Load is not equal to the name of the class, thus it cannot be the constructor of my class on my aspx.cs page
I have a gut feeling that…

Eon
- 3,833
- 10
- 46
- 75
1
vote
1 answer
Where is the event handlers wired up when using AutoEventWireup?
I am trying to track down a bug in a web application, that seems to relate to AutoEventWireup being used. When and how is the events wired up when using AutoEventWireup ?
I know that it happens runtime, but exactly in which framework class/method ?…

driis
- 161,458
- 45
- 265
- 341
1
vote
1 answer
Manually adding page event handlers in ASP.Net C#
When I've built applications in the past I've used AutoEventWireup to handle the page events for me. From what I've read this incurs a significant performance cost and I'd like to do it manually in my current application.
What is the correct place…

Kelly Robins
- 7,168
- 6
- 43
- 66
0
votes
1 answer
Why is my code-behind event handler not referenced?
Why does my code-behind have no effect and my breakpoint is not reached?
I've got this in my WebForm1.aspx file: