page-lifecycle Questions

2

Solved

The expected order of HttpApplication methods is: Application_Start Init Application_BeginRequest Application_AuthenticateRequest (page life cycle) Application_EndRequest I'm passing through a ...
Herodias asked 22/8, 2010 at 12:3

1

I am launching a new tab and trying to add a visibilitychange handler for the window in order to add unload behavior, since all the docs recommend that over onunload and pagehide. My plan was to at...
Koal asked 7/6, 2022 at 20:29

4

Solved

I just developed my first xamarin.forms app. I am excited about xamarin.forms, but I miss several events. Are there any page-lifecycle-events in a xamarin.forms ContentPage? I know of these two: pr...
Slackjawed asked 25/3, 2015 at 9:52

6

I have a Button_click event. While refreshing the page the previous Postback event is triggering again. How do I identify the page refresh event to prevent the Postback action? I tried the below c...
Annelleannemarie asked 3/8, 2012 at 10:7

2

Below is my simple source code, I'm just trying to call that function after page load, but what is happening right now is: it calls that function before page load. Page loads for 5 seconds and, aft...
Siderolite asked 5/11, 2018 at 6:58

6

Solved

I have the following PerformanceFactsheet.aspx.cs page class public partial class PerformanceFactsheet : FactsheetBase { protected void Page_Load(object sender, EventArgs e) { // do stuff with...
Jassy asked 29/4, 2010 at 12:4

1

Solved

How to navigate to new page after state change? I had an app that require login first. Only after login, the app component are fully created. So I wrote something like this: Main app class AppCo...
Choir asked 16/8, 2017 at 14:13

2

Solved

If the AutoEventWireup attribute is set to false, the events need to be wired up manually. However, I cannot seem to get the Page_PreInit to fire. I would guess that I might be making the wireup ha...
Byssinosis asked 7/8, 2012 at 7:54

3

I was asked to explain the ASP.NET page life cycle in an interview some time back. I did explain it to him, but he was not satisfied with my answer. Could someone explain the life cycle to me pleas...
Fortis asked 10/12, 2011 at 14:48

2

Solved

Question #1 I want to know when am I supposed to use: Session.Abandon() // When I use this during tracing and after calling it- I find the session still has a value. And when am I supposed to...
Lowpitched asked 10/7, 2011 at 9:43

3

Solved

In asp.net life cycle, on basis of the extension (.aspx), the request would be identified and handled by aspnet_isapi.dll and then httpapplication object is created followed by request and response...
Imaret asked 5/8, 2014 at 8:44

1

Solved

In order to more understand the clientID generation in JSF (2.x), could someone explain to me when exactely does JSF generates the client ID (which lifecycle phase, build time or render time ...)? ...
Lissy asked 5/2, 2015 at 19:4

5

Solved

I've recently ran into some code that checks Page.IsCallBack but I wasn't sure how it is different from Page.IsPostBack. Can anyone enlighten me? Edit: Are they mutually exclusive or can both occu...
Rossini asked 17/4, 2009 at 15:33

3

Solved

Today I'd like to know some features on the JSF Lifecycle. Let me start : 1 - Phase 2:Apply request Values - During this phase,each component in the view will search for its values in the request ...
Romanticism asked 1/12, 2010 at 11:12

8

Solved

On postback, how can I check which control cause postback in Page_Init event. protected void Page_Init(object sender, EventArgs e) { //need to check here which control cause postback? } Thanks...
Thrasonical asked 4/7, 2010 at 17:14

6

Solved

I know it happens sometime before Load, but during what event exactly?
Allodium asked 18/9, 2008 at 17:29

2

Solved

I have an aspx and inside it an ascx. From a short testing I see the PageLoad of the aspx is called before the PageLoad of the user-Control but the opposite is true for OnInit. Does someone know w...
Passivism asked 7/9, 2011 at 13:59

2

Solved

I want to create an amount of controls dynamically based on a number the user enters into a textbox. This part I have working fine, but I also need the dynamically created textboxes to have event h...

5

Solved

I have an asp.net page with a c# code-behind. I am trying to have the code-behind display an 'alert' if the selected-index of a gridview object is changed without selecting 'confirm' or 'cancel'. T...
Sorn asked 24/1, 2012 at 20:52

3

Solved

I know how to wait for ajax to complete, but if I'm going to redirect a page after some ajax calls are fired off, should I wait for them to complete before the redirect? Does it matter?
Yawn asked 18/7, 2013 at 23:31

3

I've seen other solutions like this one which is pretty straightforward but what if the javascript function does more than just confirm('sure?');? I never know when it will return a bool. So I've ...
Chavarria asked 10/7, 2013 at 18:36

4

I have a text box and a RadComboBox like this : <asp:TextBox ID="txt_inner_emp_num" runat="server" Width="60px" ontextchanged="txt_inner_emp_num_TextChanged" AutoPostBack="true"></asp:Te...
Ingar asked 5/3, 2013 at 12:51

3

Solved

Why DisplayUsers(); doesn't work? My base page is: public class adminPage : System.Web.UI.Page { protected override void OnLoad(EventArgs e) { if (User.Identity.IsAuthenticated == false) { Res...
Heterothallic asked 19/3, 2011 at 19:28

2

Is there something like a lifecycle for jQuery Mobile pages? Like events that get fired on init, show, hide/back, or whatever events?! Thanks in advance!
Bundle asked 5/3, 2013 at 19:33

2

Solved

I keep on hearing this words "Viewstate Chunking". What is Viewstate Chunking? And how it is working for ASP.NET pages?
Lindseylindsley asked 2/5, 2012 at 12:41

© 2022 - 2024 — McMap. All rights reserved.