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. Master Page Refresh Problem

Master Page Refresh Problem

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

    Hi, I'd been searching the net for this but none seems to work. I am using a master page (to replace iframe actually) and happily it works as I wanted it. Now the problem is, there is a treeview in the the master page which suppose to refresh the content page but it refreshes the whole page itself causing the treeview to revert back to its original state. Is there any command to tell the Master Page not to refresh itself? Thanks in advance. J Liang

    N V U 3 Replies Last reply
    0
    • J J Liang

      Hi, I'd been searching the net for this but none seems to work. I am using a master page (to replace iframe actually) and happily it works as I wanted it. Now the problem is, there is a treeview in the the master page which suppose to refresh the content page but it refreshes the whole page itself causing the treeview to revert back to its original state. Is there any command to tell the Master Page not to refresh itself? Thanks in advance. J Liang

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

      J Liang wrote:

      Is there any command to tell the Master Page not to refresh itself?

      Upto my knowledge NO. Browsers won't treat as master and content page. When ASP.NET processes the page, it will combine master and content page and sends HTML code to browser. This will be treated as single page only. So when refresh happens, it will refresh entire page. Is it possible for you to implement with some AJAX concepts ?


      My Website | Ask smart questions

      V J 2 Replies Last reply
      0
      • J J Liang

        Hi, I'd been searching the net for this but none seems to work. I am using a master page (to replace iframe actually) and happily it works as I wanted it. Now the problem is, there is a treeview in the the master page which suppose to refresh the content page but it refreshes the whole page itself causing the treeview to revert back to its original state. Is there any command to tell the Master Page not to refresh itself? Thanks in advance. J Liang

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

        You can try isolating the Tree in an IFRAME. Would that solve the issue?

        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

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

          J Liang wrote:

          Is there any command to tell the Master Page not to refresh itself?

          Upto my knowledge NO. Browsers won't treat as master and content page. When ASP.NET processes the page, it will combine master and content page and sends HTML code to browser. This will be treated as single page only. So when refresh happens, it will refresh entire page. Is it possible for you to implement with some AJAX concepts ?


          My Website | Ask smart questions

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

          I have suggested him an IFRAME isolation trick: http://www.codeproject.com/script/comments/forums.asp?msg=2170845&forumid=12076#xx2170845xx[^]

          Vasudevan Deepak Kumar Personal Homepage Tech Gossips

          N J 3 Replies Last reply
          0
          • V Vasudevan Deepak Kumar

            I have suggested him an IFRAME isolation trick: http://www.codeproject.com/script/comments/forums.asp?msg=2170845&forumid=12076#xx2170845xx[^]

            Vasudevan Deepak Kumar Personal Homepage Tech Gossips

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

            Vasudevan Deepak Kumar wrote:

            have suggested him an IFRAME isolation trick:

            Yes, that will be a good solution. It will look like MSDN, is it ?


            My Website | Ask smart questions

            1 Reply Last reply
            0
            • J J Liang

              Hi, I'd been searching the net for this but none seems to work. I am using a master page (to replace iframe actually) and happily it works as I wanted it. Now the problem is, there is a treeview in the the master page which suppose to refresh the content page but it refreshes the whole page itself causing the treeview to revert back to its original state. Is there any command to tell the Master Page not to refresh itself? Thanks in advance. J Liang

              U Offline
              U Offline
              Urs Enzler
              wrote on last edited by
              #6

              ... or you can change your code that the state of the TreeView is maintained (ViewState). I'd need more information about what you do to provide a solution, though.

              -^-^-^-^-^- no risk no funk

              1 Reply Last reply
              0
              • V Vasudevan Deepak Kumar

                I have suggested him an IFRAME isolation trick: http://www.codeproject.com/script/comments/forums.asp?msg=2170845&forumid=12076#xx2170845xx[^]

                Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                J Offline
                J Offline
                J Liang
                wrote on last edited by
                #7

                Hi, But if I would use iFrame, doesn't that would defeat my purpose of using the Master Page of ASP.NET? My previous projects I was using iFrame but it gives me the problem again when refreshing, it will return the page back to the main page instead of refreshing the current page since the URL column on the browser show the same address even when I navigate around the page. J Liang

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

                  J Liang wrote:

                  Is there any command to tell the Master Page not to refresh itself?

                  Upto my knowledge NO. Browsers won't treat as master and content page. When ASP.NET processes the page, it will combine master and content page and sends HTML code to browser. This will be treated as single page only. So when refresh happens, it will refresh entire page. Is it possible for you to implement with some AJAX concepts ?


                  My Website | Ask smart questions

                  J Offline
                  J Offline
                  J Liang
                  wrote on last edited by
                  #8

                  Hi, I'd tried using the Update Panel which I thought it might just work but it doesn't. This is because the Tree View will direct the user to that particular page which also has the master page and the tree view in it, therefore it still refreshes the whole page. Really hope there is some work around on this as my client is not going to like their tree view to collapse every time they go to a new page ;P J Liang

                  1 Reply Last reply
                  0
                  • V Vasudevan Deepak Kumar

                    I have suggested him an IFRAME isolation trick: http://www.codeproject.com/script/comments/forums.asp?msg=2170845&forumid=12076#xx2170845xx[^]

                    Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                    J Offline
                    J Offline
                    J Liang
                    wrote on last edited by
                    #9

                    Hi, I think I just got what you mean. You mean in the Master Page itself, create an iFrame, one side with the Tree View and the other side with the PlaceHolder. It sounds like a good idea, I shall try it and get back to you with the result ;) Thanks again. J Liang

                    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