[Mono-list] ASP .NET Help

Pedro Santos psantos@oninetspeed.pt
Fri, 28 May 2004 17:03:35 +0100


Disclaimer: I am at work, this is a problem that I am having in ASP .NET =
in windows. I do not know that if in Mono it would happen the same, but =
probably it would. I hope that someone that understands ASP .NET inside =
out can help me.
=20
My problema is very simple: I have a Control that is used in a Page. All =
my Control Events are fired twice! In this order:
OnInit -> OnLoad -> OnPreRender -> OnUnLoad -> OnInit -> OnLoad -> =
OnPreRender -> OnUnLoad
=20
I do not know why they are called the second time, this is why I need =
help! :-)
This does not happen all the time, only when I do some actions. I =
captured the stack trace on each OnLoad, I hope it can help:
=20
# First
=20
Void add()
Void save()
Void OnLoad(System.EventArgs)
Void LoadRecursive()
Void LoadRecursive()
Void LoadRecursive()
Void ProcessRequestMain()
Void ProcessRequest()
Void ProcessRequest(System.Web.HttpContext)
Void System.Web.HttpApplication+IExecutionStep.Execute()
System.Exception ExecuteStep(IExecutionStep, Boolean ByRef)
Void ResumeSteps(System.Exception)
System.IAsyncResult =
System.Web.IHttpAsyncHandler.BeginProcessRequest(System.Web.HttpContext, =
System.AsyncCallback, System.Object)
Void ProcessRequestInternal(System.Web.HttpWorkerRequest)
Void ProcessRequest(System.Web.HttpWorkerRequest)
Int32 ProcessRequest(IntPtr, Int32)
=20
# Second

Void add()
Void save()
Void OnLoad(System.EventArgs)
Void LoadRecursive()
Void LoadRecursive()
Void LoadRecursive()
Void ProcessRequestMain()
Void ProcessRequest()
Void ProcessRequest(System.Web.HttpContext)
Void System.Web.HttpApplication+IExecutionStep.Execute()
System.Exception ExecuteStep(IExecutionStep, Boolean ByRef)
Void ResumeSteps(System.Exception)
Void ResumeStepsFromThreadPoolThread(System.Exception)
Void OnAsyncEventCompletion(System.IAsyncResult)
Void Complete(Boolean, System.Object, System.Exception)
Void PollLockedSessionCallback(System.Object)
=20
Can anyone give any hint? Thanks