I need help with the subject's question (not the detail in OP, which is the opposite of the subject).
I have a UserControl containing an UpdatePanel. It is being placed inside a parent UpdatePanel. I don't want the parent to postback when the child (in the UserControl) posts back. There is no need for the rest of the parent UpdatePanel to post back. It's
quite a bit larger than this child and has a huge ViewState (Inherited code. Not very clean, and in VB to boot :( ). The UserControl, along with its partial postback setup, works perfectly fine within another test page.
I know the parent UpdatePanel can be set to "Conditional", so please don't give me that as a one-line answer. I would like the UserControl to be portable. I don't want it to have dependencies such as "must set any UpdatePanel this is being placed in to
'Conditional'". That defeats the whole purpose of the encapsulation.
Is there any way for an UpdatePanel (or UserControl somehow) to hide its updates from any parent? I'm afraid I'll have to scrap a good chunk and instead of an UpdatePanel converting to JSON/doing it by hand while trying to avoid triggering the parent to
postback. Ideally I can use what I have with small modifications.
lindows
Member
168 Points
354 Posts
nested updatepanels - how to update child and not parent?
Jan 22, 2011 09:14 AM|LINK
hi all,
just like how this person wrote his post...
http://geekswithblogs.net/ranganh/archive/2007/05/16/112525.aspx
but my question is how can you update the parent and set the child not to update?
thanks
lindows
nilsan
All-Star
16940 Points
3719 Posts
Re: nested updatepanels - how to update child and not parent?
Jan 22, 2011 09:28 AM|LINK
That is not possible, if you refresh the parent update panel, all child (nested) update panels will also be updated.
Please check out this article for Update Panel Overview
Blog | Get your forum question answered | Microsoft Community Contributor 2011
lindows
Member
168 Points
354 Posts
Re: nested updatepanels - how to update child and not parent?
Jan 22, 2011 09:42 AM|LINK
is there no tweak/work around at all to stop the child from updating???
nilsan
All-Star
16940 Points
3719 Posts
Re: nested updatepanels - how to update child and not parent?
Jan 22, 2011 09:47 AM|LINK
As per the article No, still I would suggest you check out If I am missing something.
Blog | Get your forum question answered | Microsoft Community Contributor 2011
Alexander St...
Member
2 Points
1 Post
Re: nested updatepanels - how to update child and not parent?
Feb 17, 2012 05:49 PM|LINK
I need help with the subject's question (not the detail in OP, which is the opposite of the subject).
I have a UserControl containing an UpdatePanel. It is being placed inside a parent UpdatePanel. I don't want the parent to postback when the child (in the UserControl) posts back. There is no need for the rest of the parent UpdatePanel to post back. It's quite a bit larger than this child and has a huge ViewState (Inherited code. Not very clean, and in VB to boot :( ). The UserControl, along with its partial postback setup, works perfectly fine within another test page.
I know the parent UpdatePanel can be set to "Conditional", so please don't give me that as a one-line answer. I would like the UserControl to be portable. I don't want it to have dependencies such as "must set any UpdatePanel this is being placed in to 'Conditional'". That defeats the whole purpose of the encapsulation.
Is there any way for an UpdatePanel (or UserControl somehow) to hide its updates from any parent? I'm afraid I'll have to scrap a good chunk and instead of an UpdatePanel converting to JSON/doing it by hand while trying to avoid triggering the parent to postback. Ideally I can use what I have with small modifications.
Thanks,
Alexander St. Kitts
usercontrol ajax updatepanel asp.net