{"id":1321,"date":"2012-04-13T15:25:54","date_gmt":"2012-04-13T15:25:54","guid":{"rendered":"http:\/\/galhano.com\/blog\/?p=1321"},"modified":"2012-04-13T15:41:54","modified_gmt":"2012-04-13T15:41:54","slug":"nested-update-panel","status":"publish","type":"post","link":"http:\/\/galhano.com\/blog\/?p=1321","title":{"rendered":"Triggers in updatepanel (sample)"},"content":{"rendered":"<p>This sample shows how to trigger a updatepanel from a control outside of it:<\/p>\n<pre>\n[xml]<\/p>\n<p>&lt;asp:UpdatePanel ID=&quot;uPanel1&quot; runat=&quot;server&quot; UpdateMode=Conditional &gt;<br \/>\n&lt;ContentTemplate&gt;<\/p>\n<p>&lt;asp:TextBox ID=&quot;txtMyNumber&quot; runat=&quot;server&quot;&gt;&lt;\/asp:TextBox&gt;<\/p>\n<p>&lt;asp:UpdateProgress ID=&quot;UpdateProgress1&quot; runat=&quot;server&quot; AssociatedUpdatePanelID=uPanel1&gt;<br \/>\n&lt;ProgressTemplate&gt;<br \/>\n&lt;asp:Image ID=&quot;imgAjaxLoader&quot; runat=&quot;server&quot; ImageUrl=&quot;~\/Icon\/ajax-loader.gif&quot;\/&gt;<br \/>\n&lt;\/ProgressTemplate&gt;<br \/>\n&lt;\/asp:UpdateProgress&gt;<\/p>\n<p>&lt;\/ContentTemplate&gt;<\/p>\n<p>&lt;Triggers&gt;<br \/>\n&lt;asp:AsyncPostBackTrigger ControlID =&quot;btnUpdateMyNumber&quot; \/&gt;<br \/>\n&lt;\/Triggers&gt;<\/p>\n<p>&lt;\/asp:UpdatePanel&gt;<\/p>\n<p>&lt;asp:Button\u00a0 runat=&quot;server&quot; ID=&quot;btnUpdateMyNumber&quot; Text=&quot;Set My Number&quot;\u00a0 \/&gt;<\/p>\n<p>[\/xml]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This sample shows how to trigger a updatepanel from a control outside of it: [xml] &lt;asp:UpdatePanel ID=&quot;uPanel1&quot; runat=&quot;server&quot; UpdateMode=Conditional &gt; &lt;ContentTemplate&gt; &lt;asp:TextBox ID=&quot;txtMyNumber&quot; runat=&quot;server&quot;&gt;&lt;\/asp:TextBox&gt; &lt;asp:UpdateProgress ID=&quot;UpdateProgress1&quot; runat=&quot;server&quot; AssociatedUpdatePanelID=uPanel1&gt; &lt;ProgressTemplate&gt; &lt;asp:Image ID=&quot;imgAjaxLoader&quot; runat=&quot;server&quot; ImageUrl=&quot;~\/Icon\/ajax-loader.gif&quot;\/&gt; &lt;\/ProgressTemplate&gt; &lt;\/asp:UpdateProgress&gt; &lt;\/ContentTemplate&gt; &lt;Triggers&gt; &lt;asp:AsyncPostBackTrigger ControlID =&quot;btnUpdateMyNumber&quot; \/&gt; &lt;\/Triggers&gt; &lt;\/asp:UpdatePanel&gt; &lt;asp:Button\u00a0 runat=&quot;server&quot; ID=&quot;btnUpdateMyNumber&quot; Text=&quot;Set My Number&quot;\u00a0 \/&gt; [\/xml]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,4],"tags":[],"class_list":["post-1321","post","type-post","status-publish","format-standard","hentry","category-ajax","category-aspnet","author-admin"],"_links":{"self":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1321"}],"version-history":[{"count":12,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1321\/revisions"}],"predecessor-version":[{"id":1333,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1321\/revisions\/1333"}],"wp:attachment":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1321"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}