Click here to Skip to main content
15,893,663 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

here is my problem.
I have one div tag .this will be shown after click on certain link.
in my div submit button is there it works fine and shows the message added successfully.

after this action when i click refresh or F5 the same action is going on again and displays added successfully.

please help me out......

Thanks in advance
Posted
Updated 26-Aug-11 1:34am
v2

1 solution

In your Page_Load method do this:

C#
if (IsPostBack)
{
    //...put your existing code here (page initialization)
}
else
{
}
 
Share this answer
 
Comments
hitech_s 26-Aug-11 7:37am    
my problem is submit button code executes again after refreshing

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900