Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to clear browser history pages programmatically from ASP.Net web page

How to clear browser history pages programmatically from ASP.Net web page

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorial
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anuradha612
    wrote on last edited by
    #1

    Hi, can some body tell me How to clear browser history pages programmatically from ASP.Net web page

    N R 2 Replies Last reply
    0
    • A Anuradha612

      Hi, can some body tell me How to clear browser history pages programmatically from ASP.Net web page

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Anuradha612 wrote:

      ASP.Net web page

      This is not possible as ASP.NET page will be executed at the server and server don't have access to browser history. Why do you need to delete it ?

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

      1 Reply Last reply
      0
      • A Anuradha612

        Hi, can some body tell me How to clear browser history pages programmatically from ASP.Net web page

        R Offline
        R Offline
        Ravi_21
        wrote on last edited by
        #3

        hey write this function to clear the browser history Clear the IE's History Sub ClearIEHistory() Dim keyName As String = "Software\Microsoft\Internet Explorer\TypedURLs" ' delete the key that contains the URLs the history Microsoft.Win32.Registry.CurrentUser.DeleteSubKey(keyName, False) ' recreate the key, empty Microsoft.Win32.Registry.CurrentUser.CreateSubKey(keyName) End Sub hope it help u

        N 1 Reply Last reply
        0
        • R Ravi_21

          hey write this function to clear the browser history Clear the IE's History Sub ClearIEHistory() Dim keyName As String = "Software\Microsoft\Internet Explorer\TypedURLs" ' delete the key that contains the URLs the history Microsoft.Win32.Registry.CurrentUser.DeleteSubKey(keyName, False) ' recreate the key, empty Microsoft.Win32.Registry.CurrentUser.CreateSubKey(keyName) End Sub hope it help u

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Ravi_21 wrote:

          Sub ClearIEHistory() Dim keyName As String = "Software\Microsoft\Internet Explorer\TypedURLs" ' delete the key that contains the URLs the history Microsoft.Win32.Registry.CurrentUser.DeleteSubKey(keyName, False) ' recreate the key, empty Microsoft.Win32.Registry.CurrentUser.CreateSubKey(keyName) End Sub

          This will clear server's IE history !

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

          A V 2 Replies Last reply
          0
          • N N a v a n e e t h

            Ravi_21 wrote:

            Sub ClearIEHistory() Dim keyName As String = "Software\Microsoft\Internet Explorer\TypedURLs" ' delete the key that contains the URLs the history Microsoft.Win32.Registry.CurrentUser.DeleteSubKey(keyName, False) ' recreate the key, empty Microsoft.Win32.Registry.CurrentUser.CreateSubKey(keyName) End Sub

            This will clear server's IE history !

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

            A Offline
            A Offline
            Anuradha612
            wrote on last edited by
            #5

            When ever i try to open the page, if there is some cached content, it retreives that old page instead of the newly updated one, then each time i had to refresh the page to reflect the newly made changes Thanks in advance

            V 1 Reply Last reply
            0
            • N N a v a n e e t h

              Ravi_21 wrote:

              Sub ClearIEHistory() Dim keyName As String = "Software\Microsoft\Internet Explorer\TypedURLs" ' delete the key that contains the URLs the history Microsoft.Win32.Registry.CurrentUser.DeleteSubKey(keyName, False) ' recreate the key, empty Microsoft.Win32.Registry.CurrentUser.CreateSubKey(keyName) End Sub

              This will clear server's IE history !

              All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

              V Offline
              V Offline
              Vasudevan Deepak Kumar
              wrote on last edited by
              #6

              N a v a n e e t h wrote:

              This will clear server's IE history !

              But even that would have no effect. It would clear the Internet Explorer history of the ASP.NET profile on the server.

              Vasudevan Deepak Kumar Personal Homepage
              Tech Gossips
              A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

              A 1 Reply Last reply
              0
              • A Anuradha612

                When ever i try to open the page, if there is some cached content, it retreives that old page instead of the newly updated one, then each time i had to refresh the page to reflect the newly made changes Thanks in advance

                V Offline
                V Offline
                Vasudevan Deepak Kumar
                wrote on last edited by
                #7

                How about having Cache disable directives for the page?

                Vasudevan Deepak Kumar Personal Homepage
                Tech Gossips
                A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                1 Reply Last reply
                0
                • V Vasudevan Deepak Kumar

                  N a v a n e e t h wrote:

                  This will clear server's IE history !

                  But even that would have no effect. It would clear the Internet Explorer history of the ASP.NET profile on the server.

                  Vasudevan Deepak Kumar Personal Homepage
                  Tech Gossips
                  A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

                  A Offline
                  A Offline
                  Anuradha612
                  wrote on last edited by
                  #8

                  There might be some solution to the problem, i am seriously stuck up with that issue

                  N 1 Reply Last reply
                  0
                  • A Anuradha612

                    There might be some solution to the problem, i am seriously stuck up with that issue

                    N Offline
                    N Offline
                    N a v a n e e t h
                    wrote on last edited by
                    #9

                    Have you tried in other browsers ? It looks like a browser setting issue. BTW, have you enabled caching on your webpage ?

                    All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups