<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>[How Do I:] Use the ASP.NET AJAX Popup Control Extender?</title><link>http://asp.net</link><pubDate>Wed, 31 Dec 2008 17:39:23 GMT</pubDate><generator>umbraco</generator><description>Comments for [How Do I:] Use the ASP.NET AJAX Popup Control Extender?</description><language>en</language><atom:link href="http://asp.net/rss/comments/33560" rel="self" type="application/rss+xml" /><item><title>Comment Posted by alejorom</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Wed, 12 Mar 2008 17:33:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000561</guid><description><![CDATA[ <p>Im having problems with AJAX update panels and accented words like &#225;,&#233;,&#237;,&#243;,&#250;. AJAX update panel change them to another character.</p> <p>Any help about that</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/alejorom.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by JoeStagner</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Sat, 15 Mar 2008 12:44:13 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000562</guid><description><![CDATA[ <p>Feel free to email me and we can look at your code.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/JoeStagner.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jmsides</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Sun, 16 Mar 2008 18:27:15 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000563</guid><description><![CDATA[ <p>Joe,</p> <p>I am getting and error from your AJAX Control Modal Popup Extender Demo; Microsoft JScript runtime error: Object expected</p> <p>&lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://www.asp.net/learn/ajax-videos/video-84.aspx&quot;&gt;www.asp.net/.../video-84.aspx&lt;/a&gt;</p> <p>I have try to get this to work in two different ways;</p> <p>First my code as percieved from your demo -</p> <p>----------------------------------------------------------- ----------------------------------------</p> <p>&lt;%@ Page Language=&quot;VB&quot; AutoEventWireup=&quot;true&quot; CodeFile=&quot;Default.aspx.vb&quot; Inherits=&quot;_Default&quot; %&gt;</p> <p>&lt;%@ Register Assembly=&quot;AjaxControlToolkit&quot; Namespace=&quot;AjaxControlToolkit&quot; TagPrefix=&quot;cc1&quot; %&gt;</p> <p>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;&lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;&quot;&gt;www.w3.org/.../xhtml11.dtd&quot;&gt;&lt;/a&gt;</p> <p>&lt;html xmlns=&quot;&lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&quot;&gt;www.w3.org/.../xhtml&quot;&gt;&lt;/a&gt;</p> <p>&lt;head runat=&quot;server&quot;&gt;</p> <p> &#160; &#160;&lt;link href=&quot;project.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;</p> <p> &#160; &#160;&lt;title&gt;Untitled Page&lt;/title&gt;</p> <p> &#160; &#160;&lt;script type=&quot;text/javascript&quot;&gt;</p> <p> &#160; &#160; &#160; var styleToSelect;</p> <p> &#160; &#160; &#160; function onOk() {</p> <p> &#160; &#160; &#160; document.getElementById(&#39;Paragraph1&#39;).className = styleToSelect;</p> <p> &#160; &#160; &#160; }</p> <p> &#160; &#160; &#160; &lt;/script&gt;</p> <p>&lt;/head&gt;</p> <p>&lt;body&gt;</p> <p> &#160; &#160;&lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;</p> <p> &#160; &#160;&lt;asp:ScriptManager ID=&quot;ScriptManager1&quot; runat=&quot;server&quot; /&gt;</p> <p> &#160; &#160;&lt;div style=&quot;height: 411px&quot;&gt;</p> <p> &#160; &#160; &#160; &#160;&lt;br /&gt;</p> <p> &#160; &#160; &#160; &#160;&lt;p id=&quot;Paragraph1&quot;&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;Now is the time for all good men to come to the aid of their country.</p></p> <p> &#160; &#160; &#160; &#160;&lt;asp:LinkButton ID=&quot;LinkButton1&quot; runat=&quot;server&quot;&gt;Check to change the style&lt;/asp:LinkButton&gt;</p> <p> &#160; &#160; &#160; &#160;&lt;br /&gt;</p> <p> &#160; &#160; &#160; &#160;&lt;asp:Panel ID=&quot;Panel1&quot; runat=&quot;server&quot; &#160;Height=&quot;204px&quot; Style=&quot;display: none&quot; CssClass=&quot;modalPopup&quot;&gt; &#160;--Style=&quot;display: none &quot;Width=&quot;233px&quot;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;<p></p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;choose the style you like</p></p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;input id=&quot;RadioA&quot; type=&quot;radio&quot; name=&quot;Radio&quot; onclick=&quot;styleToSelect&quot; /&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;label class=&quot;sampleStyleA&quot; for=&quot;RadioA&quot;&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&quot;Choose this style.&quot;&lt;/label&gt;&lt;br /&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;input id=&quot;RadioB&quot; type=&quot;radio&quot; name=&quot;Radio&quot; onclick=&quot;styleToSelect&quot; /&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;label class=&quot;sampleStyleB&quot; for=&quot;RadioB&quot;&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&quot;Choose this style.&quot;&lt;/label&gt;&lt;br /&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;input id=&quot;RadioC&quot; type=&quot;radio&quot; name=&quot;Radio&quot; onclick=&quot;styleToSelect&quot; /&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;label class=&quot;sampleStyleC&quot; for=&quot;RadioC&quot;&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&quot;Choose this style.&quot;&lt;/label&gt;&lt;br /&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;input id=&quot;RadioD&quot; type=&quot;radio&quot; name=&quot;Radio&quot; onclick=&quot;styleToSelect&quot; /&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;label class=&quot;sampleStyleD&quot; for=&quot;RadioD&quot;&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&quot;Choose this style.&quot;&lt;/label&gt;&lt;br /&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;br /&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;div align=&quot;center&quot;&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;asp:Button ID=&quot;okButton&quot; runat=&quot;server&quot; Text=&quot;OK&quot; /&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;asp:Button ID=&quot;cancelButton&quot; runat=&quot;server&quot; Text=&quot;Cancel&quot; /&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;/div&gt; &#160; &#160; &#160;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;cc1:ModalPopupExtender ID=&quot;ModalPopupExtender1&quot; runat=&quot;server&quot; </p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;TargetControlID=&quot;LinkButton1&quot; PopupControlID=&quot;Panel1&quot; </p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;BackgroundCssClass=&quot;modalbackground&quot; CancelControlID=&quot;cancelButton&quot; </p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;DropShadow=&quot;True&quot; OkControlID=&quot;okButton&quot; onokscript=&quot;onOK()&quot;&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;/cc1:ModalPopupExtender&gt;</p> <p> &#160; &#160; &#160; &#160;&lt;/asp:Panel&gt;</p> <p> &#160; &#160;&lt;/div&gt;</p> <p> &#160; &#160;&lt;/form&gt;</p> <p>&lt;/body&gt;</p> <p>&lt;/html&gt;</p> <p>------css code------------------------------------------------------- ----------------------------------------------------------- ------------------</p> <p>div#DIV1</p> <p>{</p> <p> position: relative;</p> <p> float: right;</p> <p> background: yellow;</p> <p> padding: 1px;</p> <p>}</p> <p>.asplinkbutton</p> <p>{</p> <p> background-color: green;</p> <p>}</p> <p>.watermark </p> <p>{</p> <p> background: #FFAAFF;</p> <p>}</p> <p>.popupControl{</p> <p> border: 2px solid Black;</p> <p> background-color: #AAD4FF;</p> <p> position:absolute;</p> <p> visibility:hidden;</p> <p> border-color:Black;</p> <p> border-width:2px;</p> <p>}</p> <p>.modalPopup</p> <p>{</p> <p> background-color:#ffffdd;</p> <p> border-width:3px;</p> <p> border-style:solid;</p> <p> border-color:Gray;</p> <p> padding:3px;</p> <p> width:250px;</p> <p>}</p> <p>.sampleStyleA </p> <p>{</p> <p> background-color:#FFF;</p> <p>}</p> <p>.sampleStyleB</p> <p>{</p> <p> background-color:#FFF;</p> <p> font-family:Monospace;</p> <p> font-size:10pt;</p> <p> font-style:italic;</p> <p> font-weight:bold;</p> <p>}</p> <p>.sampleStyleC</p> <p>{</p> <p> background-color:#ddffdd;</p> <p> font-family:sans-serif;</p> <p> font-size:10pt;</p> <p> font-style:italic;</p> <p>}</p> <p>.sampleStyleD</p> <p>{</p> <p> background-color:blue;</p> <p> color:white;</p> <p> font-family:Arial;</p> <p> font-size:10pt;</p> <p>}</p> <p>.modalBackGround</p> <p>{</p> <p> background-color:Gray;</p> <p>filter:alpha(opacity=70);</p> <p>opacity:0.7;</p> <p>}</p> <p>----------------------------------------------------------- ----------------------------------------------------------- ----------------------------</p> <p>When I could not get my code to work I copy/past&#39;d Jonathan Shen&#39;s post into a new ajax web site (download from your demo site is a diffent project).</p> <p>&lt;a rel=&quot;nofollow&quot; target=&quot;_new&quot; href=&quot;http://forums.asp.net/p/1122791/1762667.aspx&quot;&gt;forums.asp.net/.../1762667.aspx&lt;/a&gt; </p> <p>This code gives me the same error; Microsoft JScript runtime error: Object expected</p> <p>I did need to make two changes to the code;</p> <p>Johan&#39;s code looks like --------------------------------------- &#160;</p> <p>&lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; CodeFile=&quot;Default.aspx.cs&quot; Inherits=&quot;_Default&quot; %&gt;</p> <p>&lt;ajaxToolkit:ModalPopupExtender ID=&quot;ModalPopupExtender1&quot; runat=&quot;server&quot; TargetControlID=&quot;LinkButton1&quot;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;PopupControlID=&quot;PanelContainer&quot; BackgroundCssClass=&quot;modalBackground&quot; DropShadow=&quot;true&quot;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; OkControlID=&quot;OkButton&quot; OnOkScript=&quot;onOk()&quot; CancelControlID=&quot;CancelButton&quot; &#160;/&gt;</p> <p>My code in the new project looks like -----------------------------------------</p> <p>&lt;%@ Page Language=&quot;VB&quot; AutoEventWireup=&quot;true&quot; CodeFile=&quot;Default.aspx.vb&quot; Inherits=&quot;_Default&quot; %&gt;</p> <p>&lt;%@ Register Assembly=&quot;AjaxControlToolkit&quot; Namespace=&quot;AjaxControlToolkit&quot; TagPrefix=&quot;cc1&quot; %&gt;</p> <p>&lt;cc1:ModalPopupExtender ID=&quot;ModalPopupExtender1&quot; runat=&quot;server&quot; </p> <p>TargetControlID=&quot;LinkButton1&quot; PopupControlID=&quot;Panel1&quot; </p> <p>BackgroundCssClass=&quot;modalbackground&quot; CancelControlID=&quot;cancelButton&quot; </p> <p>DropShadow=&quot;True&quot; OkControlID=&quot;okButton&quot; onokscript=&quot;onOK()&quot;&gt;</p> <p>&lt;/cc1:ModalPopupExtender&gt;</p> <p>I do love your viedo&#39;s. &#160;Please keep&#39;m coming.</p> <p>Thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/jmsides.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by salman_sulaiman_1979</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Sun, 20 Apr 2008 04:01:55 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000564</guid><description><![CDATA[ <p>Greetings Joe!</p> <p>this is a great demo, I am going to give it a try, I am downloading the video now. To be able to have popups in a web application is really fantastic! </p> <p>Mainly, I would need a popup after I excute a certain server side code, and then return &#160;the results for the user in case of an error in a popup. </p> <p>There is something else I wonder if it can be done with Ajax, or maybe SilverLight SDK which I haven&#39;t had a look at, It is when the whole web pages gets shaded out and then once the user clicks on the popup message, then the page goes back to normal state and becomes accessable. I tried to look for any demos for that on the Ajax videos page, but couldn&#39;t find anything for shading the page.</p> <p>~salman~</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/salman_sulaiman_1979.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by salman_sulaiman_1979</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Sun, 20 Apr 2008 04:38:20 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000566</guid><description><![CDATA[ <p>Dear Joe,</p> <p>I have been trying to find a way to control the popup from my server side code, what I need to do is display the popup based on a certain condition, so far &#160;the popup panel will come out whenever I click the submit button.</p> <p>any suggestions Joe?</p> <p>thanks mate!</p> <p>~salman~</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/salman_sulaiman_1979.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by anil.rayapudi@pbsystems.com</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Thu, 15 May 2008 01:37:18 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000567</guid><description><![CDATA[ <p>How to use the popup extender dynamically in our web page &#160;i want to keep popupextender as a tooltip for the grid. </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/anil.rayapudi@pbsystems.com.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by jirizarry</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Tue, 20 May 2008 10:13:46 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000568</guid><description><![CDATA[ <p>I am using the pop control extender in a masterpage file in a vb.net web application. &#160;The popup control extender works fine in all pages except in a page I have for viewing reports which uses a Crystal Report Viewer.</p> <p>In this particular page, the pop control extender does not work. &#160;I am not able to see the popups when I click the corresponding links. </p> <p>Is there a reason for this? &#160;Does it have a fix or is it just that they do not work together?</p> <p>Thanks,</p> <p>Jamie</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/jirizarry.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by alexdinu</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Tue, 03 Jun 2008 09:54:57 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000569</guid><description><![CDATA[ <p>Thanks for the video. I was wondering if there is a way to display the panel by different events like mouseover.</p> <p>Thanks</p> <p>Alex</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/alexdinu.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by MarkRobinson</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Fri, 04 Jul 2008 00:29:24 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000570</guid><description><![CDATA[ <p>wondering if graphis could also be displayed</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/MarkRobinson.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by blackoutslo</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Thu, 17 Jul 2008 13:35:01 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000571</guid><description><![CDATA[ <p>I downloaded the code and ran it on winsows vista with iis, and it works like the example withouth ajax..when I click on the button all three labels refresh</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/blackoutslo.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by higanesh2003</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Fri, 18 Jul 2008 06:43:55 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000572</guid><description><![CDATA[ <p>I am getting an error called cannot assign to &#39;[string]&#39;..</p> <p>I am using C# and i followed your video </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/higanesh2003.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by cv_vikram</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Wed, 06 Aug 2008 13:27:44 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000573</guid><description><![CDATA[ <p>It is simple and good....</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/cv_vikram.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by sonalbagdiya</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Wed, 06 Aug 2008 19:08:35 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000574</guid><description><![CDATA[ <p>its nice video</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/sonalbagdiya.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by BrickellCoder</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Sat, 09 Aug 2008 22:30:14 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000575</guid><description><![CDATA[ <p>I&#39;m having problems with the popupcontrolextender when I use the &lt; and &gt; characters as part of the value inside the textbox. If I take those characters out, it works fine.</p> <p>Here&#39;s the ASP code:</p> <p>----------------------------------------------------</p> <p>&lt;asp:TextBox ID=&quot;emailToTextBox&quot; runat=&quot;server&quot; Width=&quot;800&quot;&gt;&lt;/asp:TextBox&gt;</p> <p> &#160; &#160;&lt;asp:Panel ID=&quot;Panel1&quot; runat=&quot;server&quot; CssClass=&quot;popupControl&quot;&gt;</p> <p> &#160; &#160; &#160; &#160;&lt;asp:UpdatePanel ID=&quot;UpdatePanel1&quot; runat=&quot;server&quot;&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;ContentTemplate&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;asp:CheckBoxList ID=&quot;CheckBoxList1&quot; runat=&quot;server&quot;&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;asp:ListItem Text=&quot;Email1&quot; Value=&quot;&#39;First Last&#39; &lt;email1@microsoft.com&gt;&quot;&gt;&lt;/asp:ListItem&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;asp:ListItem Text=&quot;Email2&quot; Value=&quot;&#39;First Last&#39; &lt;email2@microsoft.com&gt;&quot;&gt;&lt;/asp:ListItem&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;/asp:CheckBoxList&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;asp:Button ID=&quot;Button3&quot; runat=&quot;server&quot; Text=&quot;Button&quot; UseSubmitBehavior=&quot;false&quot; /&gt;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;&lt;/ContentTemplate&gt;</p> <p> &#160; &#160; &#160; &#160;&lt;/asp:UpdatePanel&gt;</p> <p> &#160; &#160;&lt;/asp:Panel&gt;</p> <p> &#160; &#160;&lt;ajaxToolkit:PopupControlExtender ID=&quot;PopupControlExtender1&quot; runat=&quot;server&quot; TargetControlID=&quot;emailToTextBox&quot;</p> <p> &#160; &#160; &#160; &#160;PopupControlID=&quot;Panel1&quot; CommitProperty=&quot;value&quot; CommitScript=&quot;&quot; Position=&quot;Bottom&quot;&gt;</p> <p> &#160; &#160;&lt;/ajaxToolkit:PopupControlExtender&gt; &#160; </p> <p>Here&#39;s the VB code</p> <p>-----------------------------------------------------</p> <p> &#160; &#160;Function getlistselections(ByVal emailList As CheckBoxList) As String</p> <p> &#160; &#160; &#160; &#160;Dim result As String = &quot;&quot;</p> <p> &#160; &#160; &#160; &#160;For Each lst As ListItem In emailList.Items</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;If lst.Selected AndAlso lst.Value.ToString &lt;&gt; &quot;&quot; Then</p> <p> &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;result = result + lst.Value.ToString + &quot;,&quot;</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;End If</p> <p> &#160; &#160; &#160; &#160;Next</p> <p> &#160; &#160; &#160; &#160;getlistselections = result</p> <p> &#160; &#160;End Function</p> <p> &#160; &#160;Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click</p> <p> &#160; &#160; &#160; &#160;Dim selections As String = GetListSelections(CheckBoxList1)</p> <p> &#160; &#160; &#160; &#160;If Not (String.IsNullOrEmpty(selections)) Then</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;PopupControlExtender.GetProxyForCurrentPopup(Me.Page).Commi t(selections)</p> <p> &#160; &#160; &#160; &#160;Else</p> <p> &#160; &#160; &#160; &#160; &#160; &#160;PopupControlExtender1.Cancel()</p> <p> &#160; &#160; &#160; &#160;End If</p> <p> &#160; &#160; &#160; &#160;CheckBoxList1.ClearSelection()</p> <p> &#160; &#160;End Sub</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/BrickellCoder.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by dead_zone2006</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Sun, 10 Aug 2008 08:53:45 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000576</guid><description><![CDATA[ <p>i want ot ask something if i have text and value for RadioButtonList and i want to get the value that user selected in variable and use it in vb code</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/dead_zone2006.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by grin93</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Wed, 13 Aug 2008 20:18:27 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000577</guid><description><![CDATA[ <p>Thank for great demos It helps a lot. </p> <p>But for some reason on one of my computers I have no audio.</p> <p>What should I do to fix it? I am using Media Player 11 on Windows XP on both machines. &#160;One has audio of demos working</p> <p>fine another one is silent.</p> <p>Thanks again</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/grin93.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by adeel2083</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Thu, 25 Sep 2008 02:34:21 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000578</guid><description><![CDATA[ <p>Hi</p> <p>I m very new to web application. I use your demo to make a popup application.</p> <p>I have a question</p> <p>I have a textbox and an OK button when user click the ok button the value in the textbox will store in a variable.</p> <p>u can mail answer on adeel2083@yahoo.com</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/adeel2083.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by printmaker</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Sat, 11 Oct 2008 08:51:31 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000579</guid><description><![CDATA[ <p>Thank you for the popup control extender demo. However, can you use the control for Gridviews, listviews, etc. in Visual Studio 2008; is there code for that?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/printmaker.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by KuntalShah</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Fri, 24 Oct 2008 01:05:48 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000580</guid><description><![CDATA[ <p>Thats a very good example. But my requirements are something different. I have been trying to find a way to control the popup from my server side code. What I need to do is display the popup with Yes/No buttons based on a certain condition and executes the remaining code based on the Yes/No button clicked. I went through your code, but this didn’t helped much since it only shows popup when I click the submit button on my asp page.Can you share some thoughts on this.</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/KuntalShah.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by SwooshMojo</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Thu, 06 Nov 2008 18:43:02 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000581</guid><description><![CDATA[ <p>KuntalShah I believe I have an answer to your comment. </p> <p>First, Make a dummy button to use for the okControlId. In this button set the style =&quot;display :none&quot;</p> <p>Next, Add another button. In this button do your logic in the code behind and afterwards set your extender.show()</p> <p>This will allow you to condition the popup extender.</p> <p>Also, you can hide your extender like this extender.hide()</p> <p>Here is an example:</p> <p>HTML</p> <p>&lt;asp:Button id =&quot;btnTestNew&quot; runat =&quot;server&quot; Text =&quot;OKFAKE&quot; style=&quot;display :none&quot; &#160;/&gt; </p> <p> &lt;asp:Button id =&quot;btnTest&quot; runat =&quot;server&quot; Text =&quot;OKREAL&quot;/&gt;</p> <p>CODE</p> <p>Protected Sub btnTest_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnTest.Click</p> <p> &#160; &#160; &#160; &#160;Dim test As String</p> <p> &#160; &#160; &#160; &#160;test = &quot;WHOOPIE IT WORKED&quot;</p> <p> &#160; &#160; &#160; &#160;Me.ModalPopupExtender1.Show()</p> <p> &#160; &#160;End Sub</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/SwooshMojo.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by dmurphy7299</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Mon, 01 Dec 2008 13:34:28 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000582</guid><description><![CDATA[ <p>Great Demos! &#160;I&#39;m using the popup extender control in a gridview. &#160;I have an image in each row that displays a panel on mouseover. &#160;It works fine until I try to use it on a user control. &#160;I think it&#39;s failing on the javascript Find method. &#160;It can&#39;t find the control using the behaviorID that I set for the image control. &#160;Do you know how I can get around this?</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/dmurphy7299.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by amitranjan</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Fri, 05 Dec 2008 03:50:03 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000583</guid><description><![CDATA[ <p>can i open any existing page in popup extender....???</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/amitranjan.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by djibril_chimere_DIAW</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Tue, 30 Dec 2008 03:19:54 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000584</guid><description><![CDATA[ <p>Thanks! J&#235;r&#235;j&#235;f!</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/djibril_chimere_DIAW.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by panand</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Wed, 31 Dec 2008 16:29:10 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000585</guid><description><![CDATA[ <p>Hi Joe,</p> <p>This is a great Demo! Unfortunately the PopUpExtender fails to pass the value to the text box when the RadioButtonList is dynamically built from a database source. </p> <p>I compared the source code of the pages, but I do not see any noticeable differences between this example and the one that I created. </p> <p>When I debugged the code, SelectedValue returned empty. And when I tried to use SelectedItem.Value instead and the application threw an exception. </p> <p>I disabled the database code and hard-coded the radiobutton list and the app worked!!!</p> <p>Any help is appreciated.</p> <p>thanks,</p> <p>Andy</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/panand.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by panand</title><link>http://asp.net/web-forms/videos/ajax-control-toolkit/how-do-i-use-the-aspnet-ajax-popup-control-extender</link><pubDate>Wed, 31 Dec 2008 17:39:23 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-00000000586</guid><description><![CDATA[ <p>Hi again Joe,</p> <p>I figured 2 ways out. </p> <p>I forgot to close the DataReader using the Close() method.</p> <p>But, the one below was something that I tried first.</p> <p>I explicitly iterate thro&#39; the DataReader Object and added ListItem Objects to the RadioButtonList control.</p> <p>In Short, I replaced this code:</p> <p>makeReader = sqlCmd.ExecuteReader()</p> <p>rblMake.DataSource = makeReader</p> <p>rblMake.DataBind()</p> <p>With this:</p> <p>Try</p> <p>While makeReader.Read()</p> <p> Dim tempMake As String, tempMakeID As Integer</p> <p> tempMakeID = CInt(makeReader(&quot;MakeID&quot;))</p> <p> tempMake = CStr(makeReader(&quot;MakeName&quot;))</p> <p> Dim lstItem As New ListItem</p> <p> lstItem.Text = tempMake</p> <p> lstItem.Value = tempMakeID</p> <p> rblMake.Items.Add(lstItem)</p> <p>End While</p> <p>Catch ex As Exception</p> <p>Finally</p> <p> makeReader.Close()</p> <p>End Try</p> <p>The application works using either of the 2 fixes.</p> <p>Thanks!</p> <p>-Shanthanu</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/panand.jpg?forceidenticon=false&amp;dt=635048838000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>