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. 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 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: # First 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) # 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) Can anyone give any hint? Thanks _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
