How to refresh content place holder only without refreshing whole master page?
-
How to refresh content place holder only without refreshing whole master page? I already used UpdatePanel in Content Page.
-
How to refresh content place holder only without refreshing whole master page? I already used UpdatePanel in Content Page.
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 theUpdateMode
of that UpdatePanel as "Conditional
". And when ever you want to update the Content Place holder, callUpdatePanel1.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
-
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 theUpdateMode
of that UpdatePanel as "Conditional
". And when ever you want to update the Content Place holder, callUpdatePanel1.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
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?
-
How to refresh content place holder only without refreshing whole master page? I already used UpdatePanel in Content Page.
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.
-
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?
I didn't get your point. You want to refresh the content page only. Isn't it ?
Cheers ! Abhijit Codeproject MVP
-
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?
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?
-
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?
Yes. I am also confused from his post :confused:
Cheers ! Abhijit Codeproject MVP