﻿<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developers.de/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>ATLAS Issue: RegisterStartupScript and RegisterClientScriptBlock do not work in atlas:UpdatePanel?</title><link />http://developers.de/blogs/damir_dobric/archive/2006/07/20/780.aspx<description>To understand this ATLAS issue imagine there is a page which has an asp:button control and corresponding handler, which is called when the button is clicked. The requirement is to show the alert window, when the button ‘cmd’ is clicked. To do that the</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>re: ATLAS Issue: RegisterStartupScript and RegisterClientScriptBlock do not work in atlas:UpdatePanel?</title><link />http://developers.de/blogs/damir_dobric/archive/2006/07/20/780.aspx#221076<pubdate>Fri, 04 Nov 2011 21:37:45 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:221076</guid><dc:creator>Dushyant</dc:creator><description>&lt;p&gt;Comment by Anil Desai worked for me too&lt;/p&gt;
&lt;p&gt;I tried this without the call of function i.e. I wrote the complete script in a string and tried but didn&amp;#39;t worked. A function call is working perfectly&lt;/p&gt;
&lt;p&gt;Thanx Anil&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=221076" width="1" height="1"&gt;</description></item><item><title>re: ATLAS Issue: RegisterStartupScript and RegisterClientScriptBlock do not work in atlas:UpdatePanel?</title><link />http://developers.de/blogs/damir_dobric/archive/2006/07/20/780.aspx#5729<pubdate>Wed, 03 Jun 2009 13:22:49 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:5729</guid><dc:creator>Anil Desai</dc:creator><description>&lt;p&gt;ScriptManager.RegisterStartupScript(Page, this.GetType(), &amp;quot;titOne&amp;quot;, &amp;quot;methodTest();&amp;quot;, true); worked for me&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=5729" width="1" height="1"&gt;</description></item><item><title>re: ATLAS Issue: RegisterStartupScript and RegisterClientScriptBlock do not work in atlas:UpdatePanel?</title><link />http://developers.de/blogs/damir_dobric/archive/2006/07/20/780.aspx#1548<pubdate>Fri, 07 Sep 2007 07:47:27 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1548</guid><dc:creator>and</dc:creator><description>&lt;p&gt;ScriptManager.RegisterStartupScript(Page, this.GetType(), &amp;quot;aKey&amp;quot;, &amp;quot;alert(1);&amp;quot;, true); worked for me&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=1548" width="1" height="1"&gt;</description></item><item><title>RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2006/07/20/780.aspx#1194<pubdate>Mon, 12 Feb 2007 13:47:51 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:1194</guid><dc:creator>Damir Dobric Posts</dc:creator><description>&lt;p&gt;Imagine you have a control which registers some trivial script, which has to be executed during loading&lt;/p&gt;
&lt;img src="http://developers.de/aggbug.aspx?PostID=1194" width="1" height="1"&gt;</description></item><item><title>re: ATLAS Issue: RegisterStartupScript and RegisterClientScriptBlock do not work in atlas:UpdatePanel?</title><link />http://developers.de/blogs/damir_dobric/archive/2006/07/20/780.aspx#923<pubdate>Fri, 15 Sep 2006 06:53:12 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:923</guid><dc:creator>Damir Dobric</dc:creator><description>Thanks for the comment beam.&lt;br&gt;I compared the stream returned from the server in both cases. It is almost identical.&lt;br&gt;However, both examples work with the build 2.0.50727.0 of Microsoft.Web.Atlas.dll.&lt;br&gt;&lt;br&gt;Damir&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=923" width="1" height="1"&gt;</description></item><item><title>re: ATLAS Issue: RegisterStartupScript and RegisterClientScriptBlock do not work in atlas:UpdatePanel?</title><link />http://developers.de/blogs/damir_dobric/archive/2006/07/20/780.aspx#922<pubdate>Thu, 14 Sep 2006 17:15:06 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:922</guid><dc:creator>beam</dc:creator><description>try (as simple as this):&lt;br&gt;&lt;br&gt; protected void cmd_Click(object sender, EventArgs e)&lt;br&gt; &amp;nbsp; &amp;nbsp;{&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (IsPostBack)&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br&gt;&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.ClientScript.RegisterStartupScript(this.GetType(),&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;ShowPopup&amp;quot;, &amp;quot;alert('hello')&amp;quot;, true);&lt;br&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br&gt; &amp;nbsp; &amp;nbsp;}&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=922" width="1" height="1"&gt;</description></item></channel></rss>