Refreshing Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashmc44
    New Member
    • Nov 2006
    • 12

    #1

    Refreshing Problem

    i Have got a button which handles Some event
    after Handling Event if i press refresh
    the event occurs Again , how to make the event not to occur if i refresh
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Sounds like you are trying to prevent a postback, one way is to use Not Page.IsPostBack in your code...

    Comment

    • ashmc44
      New Member
      • Nov 2006
      • 12

      #3
      I have used not post back method
      the problem is i have got some Calucalation with a event after Clicking the event ,
      if i refresh the event occurs again (its happaning only to that perticular event)

      Comment

      • Sandeep akhare
        New Member
        • May 2006
        • 29

        #4
        Can you Elaborate your query ?
        you have one event after clicking that event the page should refresh this is your requirement ? or you want to refresh tha application every time event occures

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          Originally posted by ashmc44
          i Have got a button which handles Some event
          after Handling Event if i press refresh
          the event occurs Again , how to make the event not to occur if i refresh
          I too am a bit confused.
          What language are you using to handle the button click event?

          Usually what happens with .NET is that you click a button and the form is submitted to the server (using PostBack). The code on the server that handles the button click even is then called.

          It seems very unlikely that the code can be called again upon refreshing the web page.

          I'm just curious as to how you handle your button click event?
          Are you using javaScript or something to do the processing?

          Maybe you could post the code that generates the button click event and the code that handles the button click event. It could be useful in helping us better understand your problem.

          -Frinny

          Comment

          Working...