Re: AutoPostback not seeming to go to Page_load

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Kumar Reddi (kumarreddi_at_REMOVETHIS.gmail.com)
Date: 12/08/04


Date: Tue, 7 Dec 2004 20:52:16 -0500

Hmm. a postback can not skip the Load event. May be you are overlooking. How
about putting a breakpoint in the Page_Load handler and see if it does stop
there or not.

-- 
Kumar Reddi
http://kumarreddi.blogspot.com
"tshad" <tscheiderich@ftsolutions.com> wrote in message
news:#UX$6AM3EHA.4072@TK2MSFTNGP10.phx.gbl...
> I am running a program I got off the net and found the author was doing an
> "autopostback=true" on his textbox.
>
> I am not sure why he was doing this as it doesn't seem to be doing
anything,
> but when I put trace on, I can see the page being posted, but I have the
> following:
>
> *************************************************************
> private void Page_Load(object sender, System.EventArgs e)
> {
> Trace.Warn("inside Page_Load");
>    if(!IsPostBack)
> ***************************************************************
>  The Trace.Warn displays on all of the other Postbacks, but doesn't seem
to
> on the AutoPostBack.
>
> Is it foregoing the Page_Load for some reason?
>
> I was going to take it out as it doesn't seem to be doing anything, but I
am
> curious as to what it is doing.
>
> Thanks,
>
> Tom.
>
>


Relevant Pages

  • Re: AddHandler to Dropdownlist in ItemDataBound Doesnt work !!
    ... ItemDataBound isn't invoked on postback because the control isn't databound ... ItemDataBound you'll see it isn't called. ... DataListItemEventArgs) Handles list.ItemDataBound ... true, hook up the handler. ...
    (microsoft.public.dotnet.framework.aspnet)
  • How to prevent a GridViews ButtonField from doing a postback when clicked?
    ... I want to use my own onclick handler to call ... window.opento display a page in a new browser window when ... I tried doing this in the RowCommand postback event by doing this in the ... I'm using the RowDataBound event to add my own onclick event handler to the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: dropdownlist postback not firing
    ... So even the the postback has fired and the breakpoint has been ... private void PopulateDropDown(DropDownList ddlList, DataTable dtData, ... string strValueField, string strTextField, string strDefaultPromt) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Postback confusion re: redirects
    ... that redirects to the same page with the appropriate ... click handler is doing other things, like updating a database, etc, you ... I can put the redirect in the postback. ... > (adding/updating a querystring) so that the page is bookmarkable. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: CheckBox CheckChanged EventHandler not working?
    ... "You have to recreate the checkbox and reattach the event handler on postback." ... Not sure if I'm understanding how PostBack or recreation works in regard to ...
    (microsoft.public.dotnet.languages.csharp)