﻿<?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>RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx<description>Imagine you have a control which registers some trivial script, which has to be executed during loading of the page. To do that you will usually use following method: page.ClientScript.RegisterStartupScript(&amp;hellip;) After some time, you decide to use</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx#521322<pubdate>Thu, 28 Feb 2013 09:14:33 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:521322</guid><dc:creator>Fernando</dc:creator><description>&lt;p&gt;Does anyone knows a way to make it work in content pages (using masterpages concept)?&lt;/p&gt;
&lt;p&gt;The following code just works when the page has not a masterpage.&lt;/p&gt;
&lt;p&gt; ScriptManager.RegisterClientScriptBlock(this, this.GetType(), &amp;quot;img&amp;quot;, &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;top.document.getElementById(&amp;#39;Image1&amp;#39;).src=&amp;#39;data:image/jpg;base64,&amp;quot; + base64String + &amp;quot;&amp;#39;;&amp;quot;,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;true);&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=521322" width="1" height="1"&gt;</description></item><item><title>re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx#475093<pubdate>Tue, 01 Jan 2013 05:17:21 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:475093</guid><dc:creator>Roozbeh </dc:creator><description>&lt;p&gt;thankyou so.......much...ur post s really useful.it saved my time..&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=475093" width="1" height="1"&gt;</description></item><item><title>re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx#392324<pubdate>Thu, 25 Oct 2012 09:38:40 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:392324</guid><dc:creator>Toby</dc:creator><description>&lt;p&gt;thank you so much! &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=392324" width="1" height="1"&gt;</description></item><item><title>re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx#312766<pubdate>Sat, 09 Jun 2012 09:10:21 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:312766</guid><dc:creator>Kumar </dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;i am using this script in Render() of my page , in this way :&lt;/p&gt;
&lt;p&gt;ScriptManager.RegisterStartupScript(this.Page, this.GetType(), &amp;quot;blgListPagKey&amp;quot;, &amp;quot;SetPageSize(&amp;quot; + this.PaginationSize + &amp;quot;,&amp;#39;#dvBlogListing&amp;#39;, &amp;#39;1&amp;#39;, &amp;#39;&amp;quot; + currPagCtnrID + &amp;quot;&amp;#39;);&amp;quot;, true);&lt;/p&gt;
&lt;p&gt;Working fine in local machines as well as dev machines , not working in PreProduction Mac ...Is there any way to solve this ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=312766" width="1" height="1"&gt;</description></item><item><title>re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx#284090<pubdate>Sat, 31 Mar 2012 09:20:44 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:284090</guid><dc:creator>binta prasad</dc:creator><description>&lt;p&gt;thankyou so.......much...ur post s really useful.it saved my time..&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=284090" width="1" height="1"&gt;</description></item><item><title>re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx#272582<pubdate>Tue, 28 Feb 2012 08:59:18 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:272582</guid><dc:creator>Fabian reynoso </dc:creator><description>&lt;p&gt;Gracias Igual pero no me funciona en &lt;/p&gt;
&lt;p&gt;firefox 10.02 &amp;nbsp;probé:&lt;/p&gt;
&lt;p&gt;asp.net 2.0 frmamework &lt;/p&gt;
&lt;p&gt;3.5 toolkit ajax 3.5&lt;/p&gt;
&lt;p&gt;1-&lt;/p&gt;
&lt;p&gt;ScriptManager.RegisterStartupScript(Me, Me.GetType(), Guid.NewGuid().ToString(), script, True)&lt;/p&gt;
&lt;p&gt;2-&lt;/p&gt;
&lt;p&gt;ScriptManager.RegisterStartupScript(Me.updatepanel1, Me..GetType(), Guid.NewGuid().ToString(), script, True)&lt;/p&gt;
&lt;p&gt;3-&lt;/p&gt;
&lt;p&gt;ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), &amp;quot;Guid.NewGuid().ToString()&amp;quot;, script, True)&lt;/p&gt;
&lt;p&gt;4-&lt;/p&gt;
&lt;p&gt;ScriptManager.RegisterClientScriptBlock(Me.UpdatePanel1, Me.UpdatePanel1.GetType(), &amp;quot;Guid.NewGuid().ToString()&amp;quot;, script, True)&lt;/p&gt;
&lt;p&gt;5-&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Dim docGuid As String = Guid.NewGuid().ToString()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39; &amp;nbsp;&amp;#39;Do pdf creation stuff here...&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39; &amp;nbsp;Dim sb As StringBuilder = New StringBuilder(&amp;quot;&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39; &amp;nbsp;Dim strRoot As String&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39; &amp;nbsp;strRoot = Request.Url.GetLeftPart(UriPartial.Authority)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39; &amp;nbsp;sb.Append(&amp;quot;window.open(&amp;#39;pdf.aspx?filename=&amp;quot; &amp;amp; Adjunto + &amp;quot;&amp;#39;);&amp;quot;)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#39; &amp;nbsp;ScriptManager.RegisterClientScriptBlock(Me.UpdatePanel1, Me.UpdatePanel1.GetType(), &amp;quot;NewClientScript&amp;quot;, sb.ToString(), True)&lt;/p&gt;
&lt;p&gt;6-&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ScriptManager.RegisterClientScriptBlock(UpdatePanel1, UpdatePanel1.GetType(), &amp;quot;UpdatePanel1_PreRender&amp;quot;, _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;&amp;lt;script type=&amp;#39;text/javascript&amp;#39; id=&amp;#39;UpdatePanel1_PreRender&amp;#39;&amp;gt;&amp;quot; &amp;amp; _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;include(&amp;#39;&amp;quot; &amp;amp; Script &amp;amp; &amp;quot;&amp;#39;);&amp;quot; &amp;amp; _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;removeDuplicatedScript(&amp;#39;UpdatePanel1_PreRender&amp;#39;);&amp;lt;/script&amp;gt;&amp;quot; _&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , False)&lt;/p&gt;
&lt;p&gt;Si alguien puedde ayudarme !! &amp;nbsp;desde ya muchas &amp;nbsp;gracias !! &lt;/p&gt;
&lt;p&gt;fabian.reynoso@gmail.com&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=272582" width="1" height="1"&gt;</description></item><item><title>re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx#262728<pubdate>Tue, 03 Jan 2012 07:02:27 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:262728</guid><dc:creator>Lakshman</dc:creator><description>&lt;p&gt;super code.... thank you so much&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=262728" width="1" height="1"&gt;</description></item><item><title>re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx#262729<pubdate>Mon, 02 Jan 2012 18:08:39 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:262729</guid><dc:creator>Xapax</dc:creator><description>&lt;p&gt;Perfect !!!!!!!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=262729" width="1" height="1"&gt;</description></item><item><title>re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx#232118<pubdate>Tue, 06 Dec 2011 09:46:30 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:232118</guid><dc:creator>balaji</dc:creator><description>&lt;p&gt;re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!&lt;/p&gt;
&lt;p&gt;please help me &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=232118" width="1" height="1"&gt;</description></item><item><title>re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx#191840<pubdate>Thu, 22 Sep 2011 08:32:27 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:191840</guid><dc:creator>jbbi</dc:creator><description>&lt;p&gt;Awesome! Thanks !&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=191840" width="1" height="1"&gt;</description></item><item><title>re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx#88723<pubdate>Thu, 14 Jul 2011 09:03:56 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:88723</guid><dc:creator>Luis</dc:creator><description>&lt;p&gt;Awesome, i wasted hours lookinf for a solution.&lt;/p&gt;
&lt;p&gt;Thx a lot!!!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=88723" width="1" height="1"&gt;</description></item><item><title>re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx#191876<pubdate>Sun, 26 Jun 2011 06:23:12 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:191876</guid><dc:creator>shawn</dc:creator><description>&lt;p&gt;I have to say: You save my ass .. hahaha .. you are the best man ... &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=191876" width="1" height="1"&gt;</description></item><item><title>re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx#191892<pubdate>Wed, 01 Jun 2011 19:12:51 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:191892</guid><dc:creator>iMaxHub</dc:creator><description>&lt;p&gt;As it is said.. &amp;quot; Experience is the best teacher..&amp;quot; Good going..!!!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=191892" width="1" height="1"&gt;</description></item><item><title>re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx#191895<pubdate>Wed, 25 May 2011 20:03:32 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:191895</guid><dc:creator>Haly</dc:creator><description>&lt;p&gt;You Awesome!&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=191895" width="1" height="1"&gt;</description></item><item><title>re: RegisterStartupScript and RegisterClientScriptBlock can work with UpdatePanel?!</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/12/RegisterStartupScript-and-RegisterClientScriptBlock-can-work-with-UpdatePanel_3F002100_.aspx#191899<pubdate>Tue, 17 May 2011 05:22:25 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:191899</guid><dc:creator>pubbs</dc:creator><description>&lt;p&gt;Thanks Damir..you provide a grt solution... :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=191899" width="1" height="1"&gt;</description></item></channel></rss>