need help in C#.net.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • toubuddy
    New Member
    • Oct 2007
    • 4

    need help in C#.net.

    dear how do we disable the back and forward button on internet explorer.
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    Originally posted by toubuddy
    dear how do we disable the back and forward button on internet explorer.
    What did your google search yield?

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      "stopping" the back/forward buttons generally means you don't want pages saved that people can cycle through.
      That would be the Cache settings for your page.

      Comment

      • toubuddy
        New Member
        • Oct 2007
        • 4

        #4
        Originally posted by Plater
        "stopping" the back/forward buttons generally means you don't want pages saved that people can cycle through.
        That would be the Cache settings for your page.
        ya i understand platter....ok let me put my query in another fashion.....sup pose i am loggen in to a site of my own by just entering a username and password in a page and then i m getting a welcome message if the login was successfull on another page then if i click back button from internet explorer then value should be lost as it happens in some banks application when we try to press the back button.

        Comment

        • toubuddy
          New Member
          • Oct 2007
          • 4

          #5
          Originally posted by Plater
          "stopping" the back/forward buttons generally means you don't want pages saved that people can cycle through.
          That would be the Cache settings for your page.
          ya i understand platter....ok let me put my query in another fashion.....sup pose i am loggen in to a site of my own by just entering a username and password in a page and then i m getting a welcome message if the login was successfull on another page then if i click back button from internet explorer then value should be lost as it happens in some banks application when we try to press the back button.

          Comment

          • Plater
            Recognized Expert Expert
            • Apr 2007
            • 7872

            #6
            Yeah that would be the cache settings for the page.

            Use
            Code:
            Response.Cache.SetNoStore();
            On any pages that you don't want to be cached.

            Comment

            • Frinavale
              Recognized Expert Expert
              • Oct 2006
              • 9749

              #7
              Originally posted by toubuddy
              ya i understand platter....ok let me put my query in another fashion.....sup pose i am loggen in to a site of my own by just entering a username and password in a page and then i m getting a welcome message if the login was successfull on another page then if i click back button from internet explorer then value should be lost as it happens in some banks application when we try to press the back button.
              In your Page_Load you can check if the user is logged in...if so, you could automatically redirect the user to wherever they should be after logging in.

              Comment

              • Plater
                Recognized Expert Expert
                • Apr 2007
                • 7872

                #8
                Originally posted by Frinavale
                In your Page_Load you can check if the user is logged in...if so, you could automatically redirect the user to wherever they should be after logging in.
                Yes, you would need to do that in-conjunction with the nostore cache.

                Comment

                Working...