<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET AJAX UI</title><link>http://forums.asp.net/1008.aspx</link><description>Here you can discuss UI-related issues with AJAX such as controls and client-side functionality including Silverlight controls for ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Prevent update panel blink in parent when __doPostBack() is called</title><link>http://forums.asp.net/thread/3275795.aspx</link><pubDate>Mon, 06 Jul 2009 02:50:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275795</guid><dc:creator>chetan.sarode</dc:creator><author>chetan.sarode</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275795.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=3275795</wfw:commentRss><description>&lt;h2&gt;&lt;a name="UnderstandingUpdatePanelRefresh"&gt;How UpdatePanel Controls Are Refreshed&lt;/a&gt; &lt;/h2&gt;
&lt;p&gt;The following list describes the property settings of the &lt;a href="http://forums.asp.net/mref/T_System_Web_UI_UpdatePanel.aspx"&gt;UpdatePanel&lt;/a&gt; control that determine when a panel&amp;#39;s content is updated during partial-page rendering.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If the &lt;a href="http://forums.asp.net/mref/P_System_Web_UI_UpdatePanel_UpdateMode.aspx"&gt;UpdateMode&lt;/a&gt; property is set to &lt;span&gt;Always&lt;/span&gt;, the &lt;a href="http://forums.asp.net/mref/T_System_Web_UI_UpdatePanel.aspx"&gt;UpdatePanel&lt;/a&gt; control’s content is updated on every postback that originates from anywhere on the page. This includes asynchronous postbacks from controls that are inside other &lt;a href="http://forums.asp.net/mref/T_System_Web_UI_UpdatePanel.aspx"&gt;UpdatePanel&lt;/a&gt; controls, and postbacks from controls that are not inside &lt;a href="http://forums.asp.net/mref/T_System_Web_UI_UpdatePanel.aspx"&gt;UpdatePanel&lt;/a&gt; controls.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If the &lt;a href="http://forums.asp.net/mref/P_System_Web_UI_UpdatePanel_UpdateMode.aspx"&gt;UpdateMode&lt;/a&gt; property is set to &lt;span&gt;Conditional&lt;/span&gt;, the &lt;a href="http://forums.asp.net/mref/T_System_Web_UI_UpdatePanel.aspx"&gt;UpdatePanel&lt;/a&gt; control’s content is updated when one of the following is true:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;When the postback is caused by a trigger for that &lt;a href="http://forums.asp.net/mref/T_System_Web_UI_UpdatePanel.aspx"&gt;UpdatePanel&lt;/a&gt; control.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When you explicitly call the &lt;a href="http://forums.asp.net/mref/T_System_Web_UI_UpdatePanel.aspx"&gt;UpdatePanel&lt;/a&gt; control&amp;#39;s &lt;a href="http://forums.asp.net/mref/M_System_Web_UI_UpdatePanel_Update.aspx"&gt;Update()&lt;/a&gt; method.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When the &lt;a href="http://forums.asp.net/mref/T_System_Web_UI_UpdatePanel.aspx"&gt;UpdatePanel&lt;/a&gt; control is nested inside another &lt;a href="http://forums.asp.net/mref/T_System_Web_UI_UpdatePanel.aspx"&gt;UpdatePanel&lt;/a&gt; control and the parent panel is updated. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When the &lt;a href="http://forums.asp.net/mref/P_System_Web_UI_UpdatePanel_ChildrenAsTriggers.aspx"&gt;ChildrenAsTriggers&lt;/a&gt; property is set to &lt;span&gt;true&lt;/span&gt; and any child control of the &lt;a href="http://forums.asp.net/mref/T_System_Web_UI_UpdatePanel.aspx"&gt;UpdatePanel&lt;/a&gt; control causes a postback. Child controls of nested &lt;a href="http://forums.asp.net/mref/T_System_Web_UI_UpdatePanel.aspx"&gt;UpdatePanel&lt;/a&gt; controls do not cause an update to the outer &lt;a href="http://forums.asp.net/mref/T_System_Web_UI_UpdatePanel.aspx"&gt;UpdatePanel&lt;/a&gt; control unless they are explicitly defined as triggers for the parent panel.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;If the &lt;a href="http://forums.asp.net/mref/P_System_Web_UI_UpdatePanel_ChildrenAsTriggers.aspx"&gt;ChildrenAsTriggers&lt;/a&gt; property is set to &lt;span&gt;false&lt;/span&gt; and the &lt;a href="http://forums.asp.net/mref/P_System_Web_UI_UpdatePanel_UpdateMode.aspx"&gt;UpdateMode&lt;/a&gt; property is set to &lt;span&gt;Always&lt;/span&gt;, an exception is thrown. The &lt;a href="http://forums.asp.net/mref/P_System_Web_UI_UpdatePanel_ChildrenAsTriggers.aspx"&gt;ChildrenAsTriggers&lt;/a&gt; property is intended to be used only when the &lt;a href="http://forums.asp.net/mref/P_System_Web_UI_UpdatePanel_UpdateMode.aspx"&gt;UpdateMode&lt;/a&gt; property is set to &lt;span&gt;Conditional&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.asp.net/ajax/documentation/live/overview/UpdatePanelOverview.aspx"&gt;http://www.asp.net/ajax/documentation/live/overview/UpdatePanelOverview.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Prevent update panel blink in parent when __doPostBack() is called</title><link>http://forums.asp.net/thread/3274836.aspx</link><pubDate>Sat, 04 Jul 2009 16:48:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274836</guid><dc:creator>Ibro</dc:creator><author>Ibro</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274836.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=3274836</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;This blink is something I have come accross and I think is something caused by the Ajax, &lt;/p&gt;</description></item><item><title>Prevent update panel blink in parent when __doPostBack() is called</title><link>http://forums.asp.net/thread/3273635.aspx</link><pubDate>Fri, 03 Jul 2009 14:01:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273635</guid><dc:creator>metaller</dc:creator><author>metaller</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273635.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=3273635</wfw:commentRss><description>&lt;p&gt;Hello there,&lt;/p&gt;&lt;p&gt;I&amp;#39;ve some problem with update panel (UP) in parent form blinking after __doPostBack() from child is called&lt;/p&gt;&lt;p&gt;When i do some action, like update som record in child (popup) window, I want to close the window, and force postback to parent.&lt;/p&gt;&lt;p&gt;Problem is, that after this, althought that page content is in UP, the page blinks...&lt;/p&gt;&lt;p&gt;this is the script I call from child&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;if (!Page.ClientScript.IsStartupScriptRegistered(&amp;quot;CloseAjaxWithReload&amp;quot;))
{
    // Prepare the script to close the window
    StringBuilder script = new StringBuilder();
    script.Append(&amp;quot;&amp;lt;script type=\&amp;quot;text/javascript\&amp;quot;&amp;gt;&amp;quot;);
    script.Append(&amp;quot;window.open(&amp;#39;&amp;#39;, &amp;#39;_self&amp;#39;, &amp;#39;&amp;#39;);&amp;quot;);
    script.Append(&amp;quot;window.opener.__doPostBack(&amp;#39;child&amp;#39;);&amp;quot;);
    script.Append(&amp;quot;window.close();&amp;quot;);
    script.Append(&amp;quot;&amp;lt;/script&amp;gt;&amp;quot;);

    ScriptManager.RegisterStartupScript(this, this.GetType(), &amp;quot;CloseAjaxWithReload&amp;quot;, script.ToString(), false);
}&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Then in parent&amp;#39;s page load, I catch, that postback was forced by child.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;protected void Page_Load(object sender, EventArgs e)
{
    
    string eventTarget = (this.Request[&amp;quot;__EVENTTARGET&amp;quot;] == null) ? string.Empty : this.Request[&amp;quot;__EVENTTARGET&amp;quot;];

    if (!IsPostBack)
    {
        // Do nothing
    }
    else
    {
        if (eventTarget == &amp;quot;child&amp;quot;)
        {
            // Call listview databind
            ReloadList();
        }  
    }
}&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;Whole content is in masterpage content and in UP.&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="xhtml"&gt;&amp;lt;asp:Content ID=&amp;quot;AccountListContent&amp;quot; ContentPlaceHolderID=&amp;quot;cphContent&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;

&amp;lt;asp:UpdatePanel ID=&amp;quot;upMain&amp;quot; runat=&amp;quot;server&amp;quot; UpdateMode=&amp;quot;Conditional&amp;quot;&amp;gt;
    &amp;lt;Triggers&amp;gt;
        &amp;lt;asp:AsyncPostBackTrigger ControlID=&amp;quot;cphContent&amp;quot; /&amp;gt;
    &amp;lt;/Triggers&amp;gt;    
    &amp;lt;ContentTemplate&amp;gt;
           //page content is here, also the listview
    &amp;lt;/ContentTemplate&amp;gt;
&amp;lt;/asp:UpdatePanel&amp;gt;
&amp;lt;/asp:Content&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; Everithing work&amp;#39;s fine, except the page blink.&lt;/p&gt;&lt;p&gt;Any idea why is the page blinking???&lt;/p&gt;&lt;p&gt;Thx for any help, suggestion, whatever :)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>