I have few question to ask about the usage of the update panel.Which is the best way to use it? I should have it in Master page so that i do not need to add it for controls which require postback in every page? Or i should have to add it for each controls
in every page.Which is the best practise to follow? Does anyone has idea on using this?
To use UpdatePanel controls with master pages, you can put a
ScriptManager control on the master page. In this scenario, the master page provides a
ScriptManager control for every content page.
Below is my code: Is it the correct design doing so in master page? The benefit i can see is I do not have to add UpdatePanel for every control which has postback n every page, but i am not able to see the cons.Does anyone has any idea?
johnsonlim02...
Member
120 Points
289 Posts
Is It correct to have UpdatePanel in Mater page ContenttPageHolder
Nov 23, 2012 01:15 AM|LINK
Hi All,
I have few question to ask about the usage of the update panel.Which is the best way to use it? I should have it in Master page so that i do not need to add it for controls which require postback in every page? Or i should have to add it for each controls in every page.Which is the best practise to follow? Does anyone has idea on using this?
chetan.sarod...
All-Star
66619 Points
11270 Posts
Re: Is It correct to have UpdatePanel in Mater page ContenttPageHolder
Nov 23, 2012 02:55 AM|LINK
To use UpdatePanel controls with master pages, you can put a ScriptManager control on the master page. In this scenario, the master page provides a ScriptManager control for every content page.
http://msdn.microsoft.com/en-us/library/bb398864(v=vs.100).aspx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
johnsonlim02...
Member
120 Points
289 Posts
Re: Is It correct to have UpdatePanel in Mater page ContenttPageHolder
Nov 23, 2012 05:35 AM|LINK
Hi ,
I think i do not say what i mean.
Below is my code: Is it the correct design doing so in master page? The benefit i can see is I do not have to add UpdatePanel for every control which has postback n every page, but i am not able to see the cons.Does anyone has any idea?
<asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:contentplaceholder id="ContentPlaceHolder1" runat="server"> </asp:contentplaceholder> </ContentTemplate> </asp:UpdatePanel>