Re: page_load executes twice ?

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: erdem (erdem_at_kulube.net)
Date: 07/23/04


Date: Fri, 23 Jul 2004 22:30:18 +0300

no i already checked it
AutoEventWireUp="false"
but i can ask this,

can a control post page.. (like dropdownlist with autopostback property set
true) if i change its index programmatically
if it can, will ispostback property be true or false (in my problem
ispostback is false(it loads page like i didnt loaded before))

"Bryant Hankins" <bryanthankins@_NO_SPAM_hotmail.com> wrote in message
news:uIWO$hOcEHA.1652@TK2MSFTNGP09.phx.gbl...
> Make sure your AutoEventWireUp="false" in your @Page directive. If it is
set
> to true and you have also hooked the event through a code behind delegate
> method then you will get Page_load fired twice.
>
> --
> Hope this helps,
> Bryant Hankins
> Numinet Systems Inc.
> http://www.numinet.com
>
>
>
> "erdem" <erdem@kulube.net> wrote in message
> news:eU0SlZOcEHA.2880@TK2MSFTNGP12.phx.gbl...
> > hi,
> > i have a problem with asp.net
> > when i was debugging
> > i put breakpoint to pageload event and then i discovered that
> > page is loaded once (explorer shows full page correctly but continues
> > loading)
> > but then
> > somehow page load executes again
> > and then page is displayed...
> > but there is different thing. when page executes page load second time,,
> > ispostback property is false (its like page is loading first time)
> >
> > flow is like this
> > page load
> > (ispostback = false)
> > other events goes
> > -->here must show page (if you lok explorer at background it already
shows
> > page but page goes on and execute page again like smting posted it back)
> > pageload (although page is loading second time ispostback property is
> false
> > again!!!!!!!)
> > explorer shows page
> >
> >
> > i want it to execute once (as normal pages do)
> > is a control posting my page back (if so why is ispostback property is
> false
> > again)
> >
> > what can be my problem??
> >
> > thanks in advance......
> >
> >
>
>



Relevant Pages

  • Re: page_load executes twice ?
    ... when page executes page load second time,, ... > pageload (although page is loading second time ispostback property is ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Compiles without Executing
    ... how you define "logically correct" this might fit the bill. ... To meet the "never executes" criterion, ... OS can't load the program -- again for resource reasons, ...
    (comp.programming)
  • Re: How to conditionally use a specified module
    ... >> executes at compile time. ... d> Hi Uri, ... require can load any module just like use. ...
    (perl.beginners)
  • Re: Strange Situation
    ... >The scenario is as follows. ... >button is Load button and the second one is Delete button. ... >executes the Delete_Click event handler and removes all the data from ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: user control load event does not fire on postback
    ... have created one usercontrol and am dynamically adding it in the page load ... UserControls' Page Load ... also check that you are not missing to add the user control in the ... > and the user control's load event executes on initial executon of the ...
    (microsoft.public.dotnet.framework.aspnet)