Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Page Refresh firing event twice

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
archana - 26 Oct 2007 06:25 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.