Gaurav
Sun Jul 27 02:35:25 CDT 2008
"Nathan Sokalski" <njsokalski@hotmail.com> wrote in message
news:O6PmmQq7IHA.616@TK2MSFTNGP02.phx.gbl...
>I have a Page that contains an UpdatePanel with a Button inside of it. The
>UpdatePanel has ChildrenAsTriggers="false" and UpdateMode="Conditional",
>and the Button is not one of the Triggers, so I would expect clicking this
The postback will always happen (async).
It's just that the UpdatePanel contents will not be updated.
Read:
http://www.asp.net/AJAX/Documentation/Live/mref/P_System_Web_UI_UpdatePanel_ChildrenAsTriggers.aspx
[snippet]
Child controls of nested UpdatePanel controls will not cause an update of
the parent UpdatePanel control's content unless you call the Update() method
explicitly or you define the child controls as triggers.
[/snippet]
[snippet]
A scenario where you might set ChildrenAsTriggers to false is when you have
two UpdatePanel controls and you want a postback from the first panel to
update the content of the second panel but not update its own content. For
example, the first panel might be a list of products to buy and the second
panel might be a shopping cart.
[/snippet]
--
Happy Hacking,
Gaurav Vaish |
http://dwt.sourceforge.net
http://blogs.mastergaurav.com |
http://eduzine.edujini-labs.com
--------------------------------