protected void Page_InitComplete(object src, EventArgs args) { EventCollection.Add(EventSource.Page, "InitComplete"); //ucCounter.Count += (csrc, cargs) => //{ // EventCollection.Add(EventSource.Page, string.Format("Control - Counter: {0}", cargs.Counter)); //}; }
protected void Page_Load(object sender, EventArgs e) { EventCollection.Add(EventSource.Control, "Load"); int count; Session["counter"] = count = ((int)(Session["counter"] ?? 0)) + 1; if (Count != null) { Count(this, new ViewCounterEventArgs { Counter = count }); } }
protected void HandleCounterEvent(object src, ViewCounterEventArgs args) { //Called in the "OnCount" menthod in the user control markup EventCollection.Add(EventSource.Page, string.Format("Control - Counter: {0}", args.Counter)); }
protected void Page_Unload(object src, EventArgs args) { EventCollection.Add(EventSource.Page, "Unload"); }
protected override void SavePageStateToPersistenceMedium(object state) { EventCollection.Add(EventSource.Page, "SavePageStateToPersistenceMedium"); base.SavePageStateToPersistenceMedium(state); }
protected override void Render(HtmlTextWriter writer) { EventCollection.Add(EventSource.Page, "Render"); base.Render(writer); }
protected void Page_SaveStateComplete(object src, EventArgs args) { EventCollection.Add(EventSource.Page, "SaveStateComplete"); }
protected void Page_PreRenderComplete(object src, EventArgs args) { EventCollection.Add(EventSource.Page, "PreRenderComplete"); }
protected void Page_LoadComplete(object src, EventArgs args) { EventCollection.Add(EventSource.Page, "LoadComplete"); }
protected void Page_Init(object src, EventArgs args) { EventCollection.Add(EventSource.Page, "Init"); }
protected void Application_PostRequestHandlerExecute(object sender, EventArgs e) { EventCollection.Add(EventSource.Application, "PostRequestHandlerExecute"); }
protected void Application_EndRequest(object sender, EventArgs e) { EventCollection.Add(EventSource.Application, "EndRequest"); }
protected void Application_Start(object sender, EventArgs e) { EventCollection.Add(EventSource.Application, "Start"); }
protected void Page_Unload(object sender, EventArgs e) { EventCollection.Add(EventSource.Control, "Unload"); }
protected void Page_PreRender(object sender, EventArgs e) { EventCollection.Add(EventSource.Control, "PreRender"); }
protected void Page_Init(object sender, EventArgs e) { EventCollection.Add(EventSource.Control, "Init"); }