<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Using UpdatePanels with ModalPopups</title><link>http://blogs.msdn.com/kirti/archive/2008/07/31/using-updatepanels-with-modalpopups.aspx</link><description>Moving an old post over from my old Technet blog to this MSDN blog. One of the most frequently asked questions on the Toolkit forums and at MIX after Shawn's demo was how to get UpdatePanels to work right with ModalPopups . The trick is to understand</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Using UpdatePanels with ModalPopups</title><link>http://blogs.msdn.com/kirti/archive/2008/07/31/using-updatepanels-with-modalpopups.aspx#8900018</link><pubDate>Wed, 27 Aug 2008 16:35:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8900018</guid><dc:creator>Tiger</dc:creator><description>&lt;p&gt;Hi, I tried so many times for your advice:What if that Popup Panel in # (2) contains an UpdatePanel. But i still got the modalpopup to clear when the control inside modalpopup is postback.&lt;/p&gt;
&lt;p&gt;Where is the examples? Hope to hear from your help.&lt;/p&gt;</description></item><item><title>re: Using UpdatePanels with ModalPopups</title><link>http://blogs.msdn.com/kirti/archive/2008/07/31/using-updatepanels-with-modalpopups.aspx#9040742</link><pubDate>Tue, 04 Nov 2008 21:24:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9040742</guid><dc:creator>hparikh</dc:creator><description>&lt;p&gt;I have a Modal Popup inside a Update Panel. And have two sets of such panel and Update Panel. In Each of Modal Popup I have a Radio Button list. Modal Popup Panel is getting populated on server side. Now when Ok button is clicked it is generating a postback.&lt;/p&gt;
&lt;p&gt;When Any one of the two Panels is clicked it works fine. But when second panel is clicked then its getting postback but Radiobutton property is lost. Both Radiobutton in the List are unchecked eventhough One is checked.&lt;/p&gt;
&lt;p&gt;Please help ....&lt;/p&gt;</description></item><item><title>re: Using UpdatePanels with ModalPopups</title><link>http://blogs.msdn.com/kirti/archive/2008/07/31/using-updatepanels-with-modalpopups.aspx#9278513</link><pubDate>Mon, 05 Jan 2009 11:54:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9278513</guid><dc:creator>kelvin</dc:creator><description>&lt;p&gt;place a updatePanel inside the Panel of the control that is for &amp;quot;pop-up&amp;quot;. &amp;nbsp;the outer update panel handles the modalpopup, but the inner updatePanel inside the modal panel will resolve your autopostback forms.&lt;/p&gt;</description></item><item><title>re: Using UpdatePanels with ModalPopups</title><link>http://blogs.msdn.com/kirti/archive/2008/07/31/using-updatepanels-with-modalpopups.aspx#9412962</link><pubDate>Wed, 11 Feb 2009 19:29:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9412962</guid><dc:creator>Todd</dc:creator><description>&lt;p&gt;Ok long story short. &amp;nbsp;I have a modalpopup within an updatepanel. &amp;nbsp;The timer was auto canceling my modal when it was open.&lt;/p&gt;
&lt;p&gt;I've tried:&lt;/p&gt;
&lt;p&gt;1. having a hidden button attached to the modalpopup targetcontrolid. &amp;nbsp;I then made the button that used to be on the targetcontrolid run serverside code. &amp;nbsp;It A. Turned off the timer and B. call javascript method &amp;quot;FireModal()&amp;quot;. &amp;nbsp;Although I got a handle in JS on the hidden button the .click would not work.&lt;/p&gt;
&lt;p&gt;2. I then thought in &amp;quot;FireModal()&amp;quot; I can just get a handle on my modalpopup and call .show() within my JS method. &amp;nbsp;For some reason I cannot, using getElementByID, get a handle on my modal popup. &amp;nbsp;It is always null.&lt;/p&gt;
&lt;p&gt;Do you have any ideas why? &amp;nbsp;I've been on this for quite some time and I think I'm going insane.&lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Todd&lt;/p&gt;</description></item><item><title>re: Using UpdatePanels with ModalPopups</title><link>http://blogs.msdn.com/kirti/archive/2008/07/31/using-updatepanels-with-modalpopups.aspx#9421804</link><pubDate>Sat, 14 Feb 2009 18:20:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9421804</guid><dc:creator>Craig</dc:creator><description>&lt;p&gt;I have a &amp;quot;Forgot Passord&amp;quot; link that pops up the modalpopup. &amp;nbsp;I want to validate the username and then display the success (password sent) or the failure message (account does not exist). &amp;nbsp;I want to do this all while in the modalpopup. &amp;nbsp;My click codebehind works but before it gets fired the modalpopup dissappears. &amp;nbsp;Any clues?&lt;/p&gt;
&lt;p&gt;[code]&lt;/p&gt;
&lt;p&gt;&amp;lt;asp:UpdatePanel ID=&amp;quot;updtpnlForgotPassword&amp;quot; runat=&amp;quot;server&amp;quot; UpdateMode=&amp;quot;Conditional&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;ContentTemplate&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:Panel ID=&amp;quot;pnlForgotPassword&amp;quot; runat=&amp;quot;server&amp;quot; CssClass=&amp;quot;modalPopup&amp;quot; Style=&amp;quot;display: none&amp;quot; Width=&amp;quot;290px&amp;quot; Height=&amp;quot;150px&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;span class=&amp;quot;modalFormTitle&amp;quot;&amp;gt;Password Recovery&amp;lt;/span&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;Enter your email and click send.&amp;lt;/p&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:Label ID=&amp;quot;ForgotPasswordResult&amp;quot; runat=&amp;quot;server&amp;quot; CssClass=&amp;quot;successText&amp;quot; /&amp;gt; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;label class=&amp;quot;modalFormLabel&amp;quot;&amp;gt;Email&amp;lt;/label&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:TextBox ID=&amp;quot;ForgotPasswordEmail&amp;quot; runat=&amp;quot;server&amp;quot; class=&amp;quot;modalTxtInput&amp;quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;br /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;div align=&amp;quot;center&amp;quot; class=&amp;quot;modalButtonDiv&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:Button ID=&amp;quot;OkButton&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Send&amp;quot; class=&amp;quot;modalButton&amp;quot; /&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:Button ID=&amp;quot;CancelButton&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Cancel&amp;quot; class=&amp;quot;modalButton&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/asp:Panel&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;/ContentTemplate&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Triggers&amp;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;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:AsyncPostBackTrigger ControlID=&amp;quot;OkButton&amp;quot; EventName=&amp;quot;Click&amp;quot; /&amp;gt; &amp;nbsp; &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/Triggers&amp;gt; &amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;lt;/asp:UpdatePanel&amp;gt; &lt;/p&gt;
&lt;p&gt;[/code]&lt;/p&gt;</description></item><item><title>re: Using UpdatePanels with ModalPopups</title><link>http://blogs.msdn.com/kirti/archive/2008/07/31/using-updatepanels-with-modalpopups.aspx#9426413</link><pubDate>Mon, 16 Feb 2009 23:33:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9426413</guid><dc:creator>kirtid</dc:creator><description>&lt;p&gt;Hi Craig - have you tried moving the UpdatePanel into the Modal popup? That way it will not disappear.&lt;/p&gt;
&lt;p&gt;Todd - If the hidden button and the Modal popup markup are both inside the UpdatePanel then it should probably do the trick. &lt;/p&gt;
</description></item><item><title>re: Using UpdatePanels with ModalPopups</title><link>http://blogs.msdn.com/kirti/archive/2008/07/31/using-updatepanels-with-modalpopups.aspx#9461768</link><pubDate>Fri, 06 Mar 2009 08:38:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9461768</guid><dc:creator>Sandeep kakade</dc:creator><description>&lt;p&gt;Hi, I have problem with the modalpopupextender control.. i m using it in the nested user controls. But when it pops up it is been displayed in the child user control and not on the top of page. What i will need to do , to display it on the top&lt;/p&gt;</description></item><item><title>re: Using UpdatePanels with ModalPopups</title><link>http://blogs.msdn.com/kirti/archive/2008/07/31/using-updatepanels-with-modalpopups.aspx#9540284</link><pubDate>Thu, 09 Apr 2009 17:14:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9540284</guid><dc:creator>TechCnu</dc:creator><description>&lt;p&gt;Kirti, &lt;/p&gt;
&lt;p&gt;I have code where I have usercontrol inside a panel. Modal Pop Extender hides and shows the panel hence the user control. However, I want to reload the user control whenever pop up is lauched . So I ended up doing something like this. But it doesnt work. Any clue&lt;/p&gt;
&lt;p&gt;&amp;lt;ajax:ModalPopupExtender ID=&amp;quot;popup&amp;quot; PopupControlID=&amp;quot;pnl&amp;quot; DynamicServiceMethod=&amp;quot;GetContent&amp;quot; DynamicControlID=&amp;quot;hdnContext&amp;quot; DynamicContextKey=&amp;quot;&amp;lt;%# Evale(ID) %&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TargetControlID=&amp;quot;btnEdit&amp;quot; runat=&amp;quot;server&amp;quot; BackgroundCssClass=&amp;quot;modalBackground&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;nbsp; &amp;nbsp;DropShadow=&amp;quot;false&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;// &amp;nbsp;&amp;lt;asp:Panel ID=&amp;quot;pnl&amp;quot; runat=&amp;quot;server&amp;quot; Style=&amp;quot;display: none&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:HiddenField ID=&amp;quot;hdnEditValue&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;asp:Label ID=&amp;quot;hdnContext&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:UpdatePanel ID=&amp;quot;test&amp;quot; runat=server UpdateMode= &amp;quot;Conditional&amp;quot; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ContentTemplate&amp;gt;&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;lt;uc1:Edit ID=&amp;quot;ucEdit&amp;quot; runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/ContentTemplate&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Triggers&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;asp:AsyncPostBackTrigger ControlID=&amp;quot;hdnEditValue&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Triggers&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/asp:UpdatePanel&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/asp:Panel&amp;gt;&lt;/p&gt;</description></item><item><title>re: Using UpdatePanels with ModalPopups</title><link>http://blogs.msdn.com/kirti/archive/2008/07/31/using-updatepanels-with-modalpopups.aspx#9558775</link><pubDate>Tue, 21 Apr 2009 12:44:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9558775</guid><dc:creator>john</dc:creator><description>&lt;p&gt;hallo i have a problem my modalpopup works well without a updatepanel but whenever a put the panels and publish it to my webhosting it gives me an javascript code error.&lt;/p&gt;
&lt;p&gt;Could you explain why this is happening? &lt;/p&gt;
&lt;p&gt;and what can i do?&lt;/p&gt;</description></item></channel></rss>