<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Launching a Modal Popup Window from Server Code</title><link>http://asp.net</link><pubDate>Thu, 20 Dec 2012 14:57:54 GMT</pubDate><generator>umbraco</generator><description>Comments for Launching a Modal Popup Window from Server Code</description><language>en</language><atom:link href="http://asp.net/rss/comments/33124" rel="self" type="application/rss+xml" /><item><title>Comment Posted by simmy007</title><link>http://asp.net/web-forms/tutorials/ajax-control-toolkit/modalpopup/launching-a-modal-popup-window-from-server-code-cs</link><pubDate>Mon, 31 May 2010 12:01:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-000000008952</guid><description><![CDATA[ <p>Why aren&#39;t you just using mpe.Show()????</p><p>I wasted a tion of time trying to get this to work on my page and finally found that I could just use the Show method of the extender</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/simmy007.jpg?forceidenticon=false&amp;dt=635047098000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by patrickrr</title><link>http://asp.net/web-forms/tutorials/ajax-control-toolkit/modalpopup/launching-a-modal-popup-window-from-server-code-cs</link><pubDate>Wed, 15 Sep 2010 08:52:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000010243</guid><description><![CDATA[ <p>Good tip from simmy007. When the user clicks a button that is not close window I want it to stay open so now I fire .show()</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/patrickrr.jpg?forceidenticon=false&amp;dt=635047098000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ben aminnia</title><link>http://asp.net/web-forms/tutorials/ajax-control-toolkit/modalpopup/launching-a-modal-popup-window-from-server-code-cs</link><pubDate>Thu, 31 Mar 2011 15:00:09 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000012664</guid><description><![CDATA[ <p>What if I need to show a modal popup based on some code logic and NOT based on a button to be clicked?  For example:</p><p> </p><p>       if (!User.Identity.IsAuthenticated)</p><p>        {</p><p>            Show a modal popup here which says: &#39;This process is only available to users who are logged into the system.&#39;</p><p>        }</p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/ben%20aminnia.jpg?forceidenticon=false&amp;dt=635047098000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by mrgreg</title><link>http://asp.net/web-forms/tutorials/ajax-control-toolkit/modalpopup/launching-a-modal-popup-window-from-server-code-cs</link><pubDate>Fri, 22 Jul 2011 14:36:07 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000013813</guid><description><![CDATA[ <p>For anyone else coming across this, simmy007 is right -- it&#39;s much much easier to just use mpe.show() than try to use a JavaScript go-between.  Works just fine for me.  This would also be the solution, @ben_aminnia</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/mrgreg.jpg?forceidenticon=false&amp;dt=635047098000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by vincek2</title><link>http://asp.net/web-forms/tutorials/ajax-control-toolkit/modalpopup/launching-a-modal-popup-window-from-server-code-cs</link><pubDate>Thu, 15 Sep 2011 05:46:11 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014197</guid><description><![CDATA[ <p>DEMO FAILURE</p><p></p><p>Server Error in &#39;/learn/ajax-control-toolkit/Demo&#39; Application.</p><p></p><p>Validation of viewstate MAC failed</p><p></p><p>Using Google Chrome 13.0.782.220 m</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/vincek2.jpg?forceidenticon=false&amp;dt=635047098000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by hetalakapadia</title><link>http://asp.net/web-forms/tutorials/ajax-control-toolkit/modalpopup/launching-a-modal-popup-window-from-server-code-cs</link><pubDate>Thu, 20 Dec 2012 13:53:10 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000017043</guid><description><![CDATA[ <p>I followed the steps mentioned in this article and the modal popup does not show up either with client button or server button click. What could i be missing if i am copying the code over as is? The solution runs fine and shows the two buttons but non of &#39;em show up the modal popup. </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/hetalakapadia.jpg?forceidenticon=false&amp;dt=635047098000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by hetalakapadia</title><link>http://asp.net/web-forms/tutorials/ajax-control-toolkit/modalpopup/launching-a-modal-popup-window-from-server-code-cs</link><pubDate>Thu, 20 Dec 2012 14:57:54 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000017044</guid><description><![CDATA[ <p>Alright, i figured it out. I had to use toolkit script manager instead of script manager to work. So basically, the following code was changed from:</p><p></p><p>&lt;asp:ScriptManager ID=&quot;asm&quot; runat=&quot;server&quot; /&gt;</p><p></p><p>To:</p><p></p><p>&lt;asp:ToolkitScriptManager ID=&quot;asm&quot; runat=&quot;server&quot; /&gt;</p><p></p><p>Thanks!</p><p></p><p></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/hetalakapadia.jpg?forceidenticon=false&amp;dt=635047098000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>