How to get/track Browser's refresh button click event? RRS feed

  • Question

  • Hi.. I am working in a c# Asp.Net 3.5 MVC architecture based web application project.
    I have a web page which is data driven i.e. whenever the page loads it's data will be refreshed (sort of a questionnaire type ) .. My problem is whenever the user clicks on refresh button of the browser the page load event of the page fires and the data is again reloaded.. I need to track the click event of the browser in order to stop data reloading during a refresh button click of the browser.

    Note: All the controls in the page are created and populated dynamically during runtime... and I cannot use Javascript ( because it should work in all browsers. ).

    Thanks in advance..

    Tuesday, August 11, 2009 10:46 AM


  • page_Load()
    //write the code for dynamically adding control to the page. Using this way the items will not be repeated while post back or refresh.

    Hope the things are clear.


    Mark as answer if helpfull.
    Tuesday, September 22, 2009 10:25 AM