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 refresh content place holder only without refreshing whole master page?

How to refresh content place holder only without refreshing whole master page?

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

    How to refresh content place holder only without refreshing whole master page? I already used UpdatePanel in Content Page.

    A G 2 Replies Last reply
    0
    • M Manish_Kumar_Nayak

      How to refresh content place holder only without refreshing whole master page? I already used UpdatePanel in Content Page.

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      When do you want to update the content page ? Is it automatically or with some event ? As you have already used UpdatePanel for content page, you need to do one more thing, Make the UpdateMode of that UpdatePanel as "Conditional". And when ever you want to update the Content Place holder, call UpdatePanel1.Update(). I assumed, Updatepanel1 is the name of Updatepanel for your content placeholder. Let me know if you need any more information.

      Cheers ! Abhijit Codeproject MVP

      M 1 Reply Last reply
      0
      • A Abhijit Jana

        When do you want to update the content page ? Is it automatically or with some event ? As you have already used UpdatePanel for content page, you need to do one more thing, Make the UpdateMode of that UpdatePanel as "Conditional". And when ever you want to update the Content Place holder, call UpdatePanel1.Update(). I assumed, Updatepanel1 is the name of Updatepanel for your content placeholder. Let me know if you need any more information.

        Cheers ! Abhijit Codeproject MVP

        M Offline
        M Offline
        Manish_Kumar_Nayak
        wrote on last edited by
        #3

        I fixed UpdateMode Conditional in all content page and written code on Load event of Master Page as - ((UpdatePanel)ContentPlaceHolder1.FindControl("UpdatePanel1")).Update(); But it still refreshing content pages. Is there any problem with by code?

        A S 2 Replies Last reply
        0
        • M Manish_Kumar_Nayak

          How to refresh content place holder only without refreshing whole master page? I already used UpdatePanel in Content Page.

          G Offline
          G Offline
          Gregory Gadow
          wrote on last edited by
          #4

          Assuming you have everything else correct, do you have a ScriptManager control on your page? I avoid AJAX when I can (never had the time to climb the learning curve) but when I get pages behaving like a normal ASPX page, it is usually because I didn't include the manager.

          1 Reply Last reply
          0
          • M Manish_Kumar_Nayak

            I fixed UpdateMode Conditional in all content page and written code on Load event of Master Page as - ((UpdatePanel)ContentPlaceHolder1.FindControl("UpdatePanel1")).Update(); But it still refreshing content pages. Is there any problem with by code?

            A Offline
            A Offline
            Abhijit Jana
            wrote on last edited by
            #5

            I didn't get your point. You want to refresh the content page only. Isn't it ?

            Cheers ! Abhijit Codeproject MVP

            1 Reply Last reply
            0
            • M Manish_Kumar_Nayak

              I fixed UpdateMode Conditional in all content page and written code on Load event of Master Page as - ((UpdatePanel)ContentPlaceHolder1.FindControl("UpdatePanel1")).Update(); But it still refreshing content pages. Is there any problem with by code?

              S Offline
              S Offline
              Sandeep Mewara
              wrote on last edited by
              #6

              Manish_84 wrote:

              ((UpdatePanel)ContentPlaceHolder1.FindControl("UpdatePanel1")).Update(); But it still refreshing content pages.

              You just wrote a code here to update/fire your Content page update panel in line 1 and in line 2 you are asking why is it refreshing. Is there a typo? Secondly, if you wanted just your content page to refesh, why are you writing your code of updating the update panel in Master page? Is the trigger to update content page present in Master page?

              A 1 Reply Last reply
              0
              • S Sandeep Mewara

                Manish_84 wrote:

                ((UpdatePanel)ContentPlaceHolder1.FindControl("UpdatePanel1")).Update(); But it still refreshing content pages.

                You just wrote a code here to update/fire your Content page update panel in line 1 and in line 2 you are asking why is it refreshing. Is there a typo? Secondly, if you wanted just your content page to refesh, why are you writing your code of updating the update panel in Master page? Is the trigger to update content page present in Master page?

                A Offline
                A Offline
                Abhijit Jana
                wrote on last edited by
                #7

                Yes. I am also confused from his post :confused:

                Cheers ! Abhijit Codeproject MVP

                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