refresh page problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mubarak basha
    New Member
    • Jul 2006
    • 10

    refresh page problem

    hi,
    when am refresh the page, the existing action is maintained. i checked the "enableviewstat e" property also.its also true only.

    how can i rectify this problem.
  • dotnet
    New Member
    • Jul 2006
    • 22

    #2
    its a bit tricky.. the trick is when the page is loaded for the first time same the current date time in session. on the page pre render event same the current date time in viewstate as well. now before you fire your action , u shoul check whether the timestamp in session and viewstate are equal or not. If equal action is allowed otherwise ignore it.
    And if user refreshes the page the two values would br different so you can avoid your action.

    Regards
    Nitin

    Comment

    Working...