I've had large chunks of code execute twice, due to bad programming on my
part.
Sometimes I needed to add a if(!Page.IsPostBack){ ... } wrapper to certain
function calls to make sure they only executed on the intial page load..
other times, I had certain objects or user controls with ViewState enabled
(which is default) but not always necessary and occasionally triggered
unanticpated code execution.
[quoted text, click to view] "surveyor04" <surveyor04.1kbl5r@mail.codecomments.com> wrote in message
news:surveyor04.1kbl5r@mail.codecomments.com...
>
> Can someone help me try to figure out why my pages load twice? While
> debugging other issues, I notice that a great many of my pages run
> through the onload method twice, and sometimes they run through the
> onclick method of buttons two times as well. As far as onlick is
> concerned, I checked the .NET designer code and there is only 1 event
> handler wired up, so I don't know why these actions are occuring in
> duplicate. Is there a way to trace through and find out why?
>
>
>
> --
> surveyor04
> ------------------------------------------------------------------------
> Posted via
http://www.codecomments.com > ------------------------------------------------------------------------
>