Re: page_load executes twice ?
From: erdem (erdem_at_kulube.net)
Date: 07/23/04
- Next message: Mike Carr: "Re: Deadlocks"
- Previous message: John Saunders: "Re: [MissingFieldException: Field not found:"
- In reply to: Bryant Hankins: "Re: page_load executes twice ?"
- Next in thread: erdem: "Re: page_load executes twice ?"
- Messages sorted by: [ date ] [ thread ]
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......
> >
> >
>
>
- Next message: Mike Carr: "Re: Deadlocks"
- Previous message: John Saunders: "Re: [MissingFieldException: Field not found:"
- In reply to: Bryant Hankins: "Re: page_load executes twice ?"
- Next in thread: erdem: "Re: page_load executes twice ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|