questions: refresh on back button and force a page refresh

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • econVictim
    New Member
    • Oct 2008
    • 13

    questions: refresh on back button and force a page refresh

    i have a user profile oriented website where every page has a form in it. I want people to submit the form and cause a refresh...

    I also want the page to refresh if they hit the back button so that the form they've submitted cannot be submitted again.. I have a poll where people vote, I don't want them to revote.... this is a common theme in the website with interactivity.. .

    any thoughts about this would be appreciated :) thanks guys
  • kspiros
    New Member
    • Oct 2008
    • 16

    #2
    if i understood what you want you can make an Ajax update panel.
    take from the .asp components an Ajax panel change the updatemode to conditional and when you want to refresh it do this
    Code:
    UpdatePanel1.Update();
    as for the pole i am not good in .asp but you can do it with cookies

    Comment

    • joedeene
      Contributor
      • Jul 2008
      • 579

      #3
      I think you can use the code below in between the <head> tags, it just tells the browser not to cache it, which would force it to download the page each time, or refresh. I think there are better ways though.

      Code:
      <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
      joedeene

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        What language have you used to develop the back end?

        Comment

        • econVictim
          New Member
          • Oct 2008
          • 13

          #5
          thanks guys i'm writing with c#

          Comment

          Working...