Hi all,
I am new to asp.net. Developing one web page.
What i observed is at a time of refreshing page click event is firing
twice.
On some pc its not happening.
But its not happening for all control. Can anyone tell me reason
behind this.
Please help me asap.
thanks in advance.
Mick Walker - 26 Oct 2007 08:10 GMT
> Hi all,
>
[quoted text clipped - 11 lines]
>
> thanks in advance.
Post your code.
archana - 27 Oct 2007 03:03 GMT
Hi,
My code has only 2 ontrols button and textbox.
on buttong click i am doing processing. When i am debuging i found
following strange thing.
first time i clicked on buttong and debugged code its working. then i
refresh page still it enters into button click event.
meaas why on page refresh its calling button click.
Can anyone explain me this behaviour?.
thanks.
David C - 26 Oct 2007 09:00 GMT
> Hi all,
>
[quoted text clipped - 11 lines]
>
> thanks in advance.
Do you have a ImageButton control without the image URL set? There is
no reason for it, but it will always do that to you.
Peter Bromberg [C# MVP] - 26 Oct 2007 18:28 GMT
Sometimes if you wire up Click events for controls on your own, and still
have AutoeventWireup="true" in your ASPX @Page declaration, this will cause
some events to fire 2x.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
> Hi all,
>
[quoted text clipped - 11 lines]
>
> thanks in advance.