PC Review


Reply
Thread Tools Rate Thread

Button Click Event Procedure being called when a Page is refreshed.

 
 
Kuldeep
Guest
Posts: n/a
 
      29th May 2007
Hello All,

Visual Studio 2005
ASP.NET 2.0
C#.NET 2.0

I have an application which has a Button click event procedure as given
below.

protected void btn_Click(object sender, EventArgs e)

{

Response.Write("Test this Page");

}



Once I run the application and click on the button. I get the "Test this
Page" line on the page.

Now, when I debug the application with a breakpoint being at the
Button-Click-Event-Procedure and I refresh the page (Refresh Button on the
IE), I find that the Button Click Event procedure is called again.

How can I avoid this?

Please Help.

Kuldeep








 
Reply With Quote
 
 
 
 
Mark Rae
Guest
Posts: n/a
 
      29th May 2007
"Kuldeep" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> How can I avoid this?


http://www.google.co.uk/search?sourc...revent+Refresh


--
http://www.markrae.net

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Button Click event not getting called SAL Microsoft ASP .NET 5 24th Nov 2008 01:36 AM
Why is a button Click event also called when a textbox TextChanged event is called??? S_K Microsoft ASP .NET 6 8th Nov 2007 07:44 PM
Page load of the parent page called twice when a modal dialog is opened from a button click of the user control on the parent page Samy Microsoft ASP .NET 2 15th Aug 2005 04:30 PM
call a button's click event from another procedure =?Utf-8?B?Q2hyaXM=?= Microsoft Dot NET Framework Forms 3 24th Jan 2005 03:34 PM
button click event being called twice on click mike parr Microsoft ASP .NET 1 20th May 2004 05:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:32 PM.