Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Page Refresh firing event twice

Reply
Thread Tools

Page Refresh firing event twice

 
 
archana
Guest
Posts: n/a
 
      10-26-2007
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.

 
Reply With Quote
 
 
 
 
Mick Walker
Guest
Posts: n/a
 
      10-26-2007
archana wrote:
> 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.
>

Post your code.
 
Reply With Quote
 
 
 
 
David C
Guest
Posts: n/a
 
      10-26-2007
On Oct 25, 10:25 pm, archana <trialproduct2...@yahoo.com> wrote:
> 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.


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.

 
Reply With Quote
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      10-26-2007
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



"archana" wrote:

> 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.
>
>

 
Reply With Quote
 
archana
Guest
Posts: n/a
 
      10-27-2007
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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gridview rowdatabound event firing twice on content page Julia B ASP .Net 0 03-03-2009 10:07 AM
Web Page Event causes page to refresh twice ? michaeltorus ASP .Net 0 11-25-2005 05:09 PM
Button ServerClick event firing twice in ASP.NET page Oz ASP .Net 0 07-29-2004 12:57 PM
Page_Load event firing twice... wierd!! Shane Bishop ASP .Net 7 02-04-2004 07:10 PM
How can I prevent a button event firing on page refresh? Stan ASP .Net 1 06-30-2003 03:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57