.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Event fired whenever page refresh

Posted By: sarav     Posted Date: June 03, 2010    Points:2   Category :ASP.Net
Hi All,

I am having a text box with a button. When I click on the button then I have some validation in client side as well as server side. If I goto any other page from this page, and came back to this page by clicking the back button or refresh the page again from the same page then the event fired again!!!

What may be the problem! and what is the solution???

Thanks,
Sarav

Responses
Author: BangaruBabuPureti             
Posted Date: June 03, 2010     Points: 5   

Sarav!

Did U Placed Any Cs logic In Page_Load Event..


Could U Inform That Message! Wat you are getting!

If Possible Screen Shot or Code....


BangaruBabu Pureti
http://bangarubabupureti.spaces.live.com/
Author: Bangaraju             
Posted Date: June 04, 2010     Points: 5   

Yes.
Page wil get refresh in that way,if u click on Bacl button

Author: Kirtan             
Posted Date: June 05, 2010     Points: 5   

In PageLoad event you need to place the code in

if(!Page.IsPostBack)
{


}



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend