Page_Load fires twice
I have a user control and its Page_Load event is firing twice.
I have consulted articles such as this one:
This article essentially says that if I set AutoEventWireUp to false, then
the Page_Load will only fire once. However, that is not the right solution
for me. Here is my code:
in the .ascx.cs file:
protected override void Page_Load(object sender, System.EventArgs e)
Trace.Write("GenInf01", "Page_Load() begin");
private void InitializeComponent()
this.Load += new System.EventHandler(this.Page_Load);
in the .ascx file:
Control Language="c#" AutoEventWireup="false" Codebehind="GenInf01.ascx.cs"
Does anyone know what else to be looking for?
To reply, remove ".SPAMBLOCK" from email address
|All times are GMT. The time now is 06:51 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.