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. Page_Load event fire when back(click browser's back button ) from another page

Page_Load event fire when back(click browser's back button ) from another page

Scheduled Pinned Locked Moved ASP.NET
question
7 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.
  • N Offline
    N Offline
    Naunt
    wrote on last edited by
    #1

    Dear all, When I click back button from browser 'Page_Load' event fire and all data those I have filled are disapper. Please kindly advise what is possible cause this and how can I prevent. Thanks and best regards

    T L 2 Replies Last reply
    0
    • N Naunt

      Dear all, When I click back button from browser 'Page_Load' event fire and all data those I have filled are disapper. Please kindly advise what is possible cause this and how can I prevent. Thanks and best regards

      T Offline
      T Offline
      thatraja
      wrote on last edited by
      #2

      No code from you? :| Did you check Page.IsPostBack[^] in Page_Load?

      thatraja


      **My Tip/Tricks
      My Dad had a Heart Attack on this day so don't...
      **

      N 1 Reply Last reply
      0
      • T thatraja

        No code from you? :| Did you check Page.IsPostBack[^] in Page_Load?

        thatraja


        **My Tip/Tricks
        My Dad had a Heart Attack on this day so don't...
        **

        N Offline
        N Offline
        Naunt
        wrote on last edited by
        #3

        Hi, thank you for reply Yes, I used Ispostback

        If Not IsPostBack Then
        'BindCombobox here
        End If

        Here is my scenarios... I have 4 comboboxes , At page_Load bind only one. Bind Second combo after user select first combo. Third combo depend on Second combo and fourth one depend on Third one. (here to avoid page refreshing I use RadAjaxPanel) After all if user click on button show data in Grid. When user doubleClick on a row from grid will go to next page, from second page when user click on Browser's back button all selected data combox and data in grid are gone.

        1 Reply Last reply
        0
        • N Naunt

          Dear all, When I click back button from browser 'Page_Load' event fire and all data those I have filled are disapper. Please kindly advise what is possible cause this and how can I prevent. Thanks and best regards

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          When you click back, the previous page in the history is loaded. I believe caching is disabled for your previous page, so every time the page is loaded from the server. If you want to display the page from the cache, enable caching.

          W N 2 Replies Last reply
          0
          • L Lost User

            When you click back, the previous page in the history is loaded. I believe caching is disabled for your previous page, so every time the page is loaded from the server. If you want to display the page from the cache, enable caching.

            W Offline
            W Offline
            Wonde Tadesse
            wrote on last edited by
            #5

            Good answer!

            Wonde Tadesse MCTS

            1 Reply Last reply
            0
            • L Lost User

              When you click back, the previous page in the history is loaded. I believe caching is disabled for your previous page, so every time the page is loaded from the server. If you want to display the page from the cache, enable caching.

              N Offline
              N Offline
              Naunt
              wrote on last edited by
              #6

              Thank you for your reply. I'm not familiar with Cache, May I know how can I enable catching? Thanks and best regards

              T 1 Reply Last reply
              0
              • N Naunt

                Thank you for your reply. I'm not familiar with Cache, May I know how can I enable catching? Thanks and best regards

                T Offline
                T Offline
                thatraja
                wrote on last edited by
                #7

                Caching ASP.NET Pages[^]

                thatraja


                **My Tip/Tricks
                My Dad had a Heart Attack on this day so don't...
                **

                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