<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>Search results matching tag 'ModalPopupExtender'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=ModalPopupExtender&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'ModalPopupExtender'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Help installing/using AJAX Toolkit &amp;amp; Modal Popup</title><link>http://forums.asp.net/thread/3548260.aspx</link><pubDate>Fri, 04 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3548260</guid><dc:creator>gheinrich</dc:creator><description>&lt;div&gt;
&lt;div&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to get the AJAX tollkit up and running on a
web app I have. We just upgraded it from VS2003 to VS2008 about 3
months ago and now I want to add some AJAX components to it from the
toolkit. I can&amp;#39;t seem to get the Modal Popup to work. I downloaded the
toolkit files, but am not quite sure how to &amp;quot;install&amp;quot; them. I added the
components to my VS2008 toolkit...but I don&amp;#39;t think they&amp;#39;re working
properly.&lt;/p&gt;
&lt;p&gt;For example, the modal popup panel never
disappears...it&amp;#39;s visible all the time. I followed the steps in teh
tutorials word-for-word, but still doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s what I know:&lt;/p&gt;
&lt;p&gt;1. The page @Register tag for the ToolKit is being added to the page...&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&amp;lt;%@ Register assembly=&amp;quot;AjaxControlToolkit&amp;quot; namespace=&amp;quot;AjaxControlToolkit&amp;quot; tagprefix=&amp;quot;ajaxToolkit&amp;quot; %&amp;gt;&lt;/p&gt;
&lt;p&gt;2. I add a scriptmanager to the page.&lt;/p&gt;
&lt;p&gt;3.
When I try to drag a ModalPopupExtender to the page it won&amp;#39;t let me...I
have to write it out by hand in the source for the page&lt;/p&gt;
&lt;p&gt;Otherwise the page works fine.&lt;/p&gt;
&lt;p&gt;Thanks, George&lt;/p&gt;
&lt;p&gt;
&lt;i&gt;&lt;b&gt;p.s.
I already changed the compatibility setting in the web.config file and
have basic AJAX update panels running on other pages...so I don&amp;#39;t hink
it&amp;#39;s AJAX in general.&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;</description></item><item><title>Problem with Seadragon in a ModalPopupExtender</title><link>http://forums.asp.net/thread/3523884.aspx</link><pubDate>Fri, 20 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3523884</guid><dc:creator>EBY</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to show a large&amp;nbsp;image with SeaDragon.&lt;/p&gt;
&lt;p&gt;If I use SeaDragon in my page, everything is fine. But if I try to include Seadragon in a ModalPopupExtender, the image is not displayed, but the SeaDragin controls are shown.&lt;/p&gt;
&lt;p&gt;Is somenone can help me?&lt;/p&gt;</description></item><item><title>how and where use ScriptManager.RegisterPostBackControl ?</title><link>http://forums.asp.net/thread/3522653.aspx</link><pubDate>Thu, 19 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3522653</guid><dc:creator>amit_chotiya</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have a gridview (MyGridView1).&lt;/p&gt;
&lt;p&gt;In the gridview in one column, I have a template field, that has a button (Browse Images).&lt;/p&gt;
&lt;p&gt;I have kept&amp;nbsp;a modalpopupextender outside the grid but inside the update panel.&lt;/p&gt;
&lt;p&gt;This popup has a fileupload server control, a&amp;nbsp;&amp;quot;Upload&amp;quot; button and a &amp;quot;Cancel&amp;quot; button.&lt;/p&gt;
&lt;p&gt;Now, the problem is when I click the &amp;quot;Upload&amp;quot; button in the popup at runtime, the event of this &amp;quot;Upload&amp;quot; button is getting fired, but I am not getting the path (that I have selected in the FileUpload control).&lt;/p&gt;
&lt;p&gt;I think, it&amp;#39;s because of the async postback, so I tried few things ...&lt;/p&gt;
&lt;p&gt;1. ScriptManager&lt;span&gt;.&lt;/span&gt;RegisterPostBackControl Method&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;&amp;lt;asp:PostBackTrigger ControlID=&amp;quot;modalpopupextender&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But, always getting one error message: &lt;i&gt;Control with ID &amp;#39;modalpopupextender&amp;#39; being registered through RegisterAsyncPostBackControl or RegisterPostBackControl must implement either INamingContainer, IPostBackDataHandler, or IPostBackEventHandler.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Don&amp;#39;t know what to do .. &lt;img title="Cry" border="0" alt="Cry" src="http://forums.asp.net/tiny_mce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif" /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Issues with positioning ModalPopupExtender, Datalist and or Z-index</title><link>http://forums.asp.net/thread/3509231.aspx</link><pubDate>Thu, 12 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3509231</guid><dc:creator>weedy</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;I have been scouring the web and these forums for a solution for the following problem.&lt;/p&gt;&lt;p&gt;I am having to position the popup accordingly for various user screen widths as I can&amp;#39;t get the Z-index to work for the popup. So if anyone has Ideas for that please help.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The ModalPopupExtender positioning works fine if you are not using it within a Datalist in that I can position the popup programatically by grabing the users screen width with javascript. But since I am using a Datalist to create a gallery I need to either change the z-index or control the popup position from the code behind, neither of which I have had any luck with.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;But when you use it in conjunction with a Datalist I am unable to access the ModalPopupExtender ID from the code behind to change the popup position. &lt;/p&gt;&lt;p&gt;Thanks in advance&lt;/p&gt;&lt;p&gt;Gehres&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Making a Database entry from a dynamic modal/button.</title><link>http://forums.asp.net/thread/3504733.aspx</link><pubDate>Tue, 10 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3504733</guid><dc:creator>Villanite</dc:creator><description>&lt;p&gt;So I have a page that has a large amount of dynamic buttons on it. The buttons are assigned to a certain item, each one is Add Child Item, Delete Item, Edit Item.&lt;/p&gt;&lt;p&gt;Delete Item has been figured out by generating dynamic ModalPopup and ConfirmButton Extenders. That was simple enough.&lt;/p&gt;&lt;p&gt;Unfortunately, I need to have the ability to add a child item now. This is sort of a tree of items. I want to be able to click on the Add Child Item button and bring up a modal that asks for an Item Description and Item Type. Once they click Add, the child item is added to the database and the page refreshes (since I can&amp;#39;t, under any circumstances get the update panels to work. But that&amp;#39;s seperate issue.)&lt;/p&gt;&lt;p&gt;I have been able to get the code to work with Confirm Button and Modal Popup extenders, but the validation is ignored and if the values are not valid, nothing is entered and there is no message displayed for the user, making that solution very user un-friendly.&lt;/p&gt;&lt;p&gt;What I need now is a way to be able to save the CommandArguments of my dynamic buttons to be used in the addition of the records. This way, I can click the button, bring up the modal, enter my values, and click Add Item, then the program already knows what the parent item is (because I saved its ID from the CommandArgument) and the page refreshes to show the updated changes.&lt;/p&gt;&lt;p&gt;My dilema is... Is there any way to save the CommandArgument between the button click and the modal&amp;#39;s pop up so that it can actually be used in my SQL statement?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>modalpopupextender</title><link>http://forums.asp.net/thread/3440639.aspx</link><pubDate>Mon, 05 Oct 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3440639</guid><dc:creator>sumitmca.84</dc:creator><description>&lt;p&gt;how to open a new page as a modalpopup with modalpopupextender &lt;/p&gt;</description></item><item><title>Errors when trying to use ModalPopupExtender</title><link>http://forums.asp.net/thread/3419080.aspx</link><pubDate>Tue, 22 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3419080</guid><dc:creator>desertfoxaz</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to create a page that shows a list of thumbnail images, and next to each thumbnail there is a link button.&amp;nbsp; When this link button is clicked, I want to display the full-size image in a modal popup.&amp;nbsp; I&amp;#39;m using a repeater control to display the thumbnails and it is working fine.&lt;br /&gt;&lt;br /&gt;In the repeater&amp;#39;s ItemDataBound event handler, I&amp;#39;m setting the CommandName and CommandArgument for the link button, which will be unique for each RepeaterItem.&amp;nbsp; I am able to extract the CommandName and CommandArgument just fine in the repeater&amp;#39;s ItemCommand event handler, which gets executed when the link button for any of the images is clicked.&lt;br /&gt;&lt;br /&gt;I have a panel containing the asp:Image control which will be used to display the full-size image.&amp;nbsp; This panel is the ModalPopupExtender&amp;#39;s PopupControlID.&amp;nbsp; However, I&amp;#39;ve come across problems setting the ModalPopupExtender&amp;#39;s TargetControlID to the repeater.&amp;nbsp; The repeater is inside an UpdatePanel, and I had to put the ModalPopupExtender and the associated Panel control inside the same UpdatePanel because I was getting runtime errors saying they had to be in same update panel.&amp;nbsp; Unfortunately, when I do this, I get a runtime error when the repeater is displayed:&lt;/p&gt;&lt;p&gt;&amp;quot;Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors. Parameter name: element&amp;quot;.&amp;nbsp; This appears to be happening in one of the Script Resource files, in the _validateParams function.&lt;/p&gt;&lt;p&gt;I&amp;#39;m binding my repeater to an array of FileInfo objects returned by the DirectoryInfo.GetFiles() method so basically I&amp;#39;m displaying the contents of an image directory on the page.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="xhtml"&gt;&amp;lt;asp:DropDownList ID=&amp;quot;ddlImageType&amp;quot; runat=&amp;quot;server&amp;quot; AutoPostBack=&amp;quot;true&amp;quot; EnableViewState=&amp;quot;true&amp;quot; OnSelectedIndexChanged=&amp;quot;ddlImageType_SelectedIndexChanged&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;asp:UpdatePanel ID=&amp;quot;upLogos&amp;quot; runat=&amp;quot;server&amp;quot; EnableViewState=&amp;quot;true&amp;quot; RenderMode=&amp;quot;Block&amp;quot; UpdateMode=&amp;quot;Conditional&amp;quot;&amp;gt;&lt;br /&gt;  &amp;lt;ContentTemplate&amp;gt;&lt;br /&gt;    &amp;lt;asp:Panel ID=&amp;quot;pnlLogos&amp;quot; runat=&amp;quot;server&amp;quot; EnableViewState=&amp;quot;true&amp;quot; Visible=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;      &amp;lt;asp:Repeater ID=&amp;quot;rptLogos&amp;quot; runat=&amp;quot;server&amp;quot; EnableViewState=&amp;quot;true&amp;quot; OnItemCommand=&amp;quot;rptLogos_ItemCommand&amp;quot; OnItemDataBound=&amp;quot;rptLogos_ItemDataBound&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;          &amp;lt;div class=&amp;quot;logoDisplay&amp;quot;&amp;gt;&lt;br /&gt;            &amp;lt;asp:Image ID=&amp;quot;imgLogo&amp;quot; runat=&amp;quot;server&amp;quot; AlternateText=&amp;quot;Logo&amp;quot; EnableViewState=&amp;quot;true&amp;quot; Height=&amp;quot;100px&amp;quot; ImageAlign=&amp;quot;Middle&amp;quot; Width=&amp;quot;100px&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;            &amp;lt;asp:Literal ID=&amp;quot;litName&amp;quot; runat=&amp;quot;server&amp;quot; EnableViewState=&amp;quot;true&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;            &amp;lt;asp:Literal ID=&amp;quot;litSize&amp;quot; runat=&amp;quot;server&amp;quot; EnableViewState=&amp;quot;true&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;            &amp;lt;asp:LinkButton ID=&amp;quot;lbViewLogo&amp;quot; runat=&amp;quot;server&amp;quot; CommandName=&amp;quot;ViewLogo&amp;quot; EnableViewState=&amp;quot;true&amp;quot; Text=&amp;quot;View Logo&amp;quot; /&amp;gt;&lt;br /&gt;          &amp;lt;/div&amp;gt;&lt;br /&gt;        &amp;lt;/ItemTemplate&amp;gt;&lt;br /&gt;      &amp;lt;/asp:Repeater&amp;gt;&lt;br /&gt;      &amp;lt;br style=&amp;quot;clear: both;&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;/asp:Panel&amp;gt;&lt;br /&gt;    &amp;lt;ajax:ModalPopupExtender ID=&amp;quot;mpeViewLogo&amp;quot; runat=&amp;quot;server&amp;quot; BackgroundCssClass=&amp;quot;modalBackground&amp;quot; CancelControlID=&amp;quot;btnClose&amp;quot; EnableViewState=&amp;quot;false&amp;quot; PopupControlID=&amp;quot;pnlViewLogo&amp;quot; TargetControlID=&amp;quot;rptLogos&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;asp:Panel ID=&amp;quot;pnlViewLogo&amp;quot; runat=&amp;quot;server&amp;quot; EnableViewState=&amp;quot;false&amp;quot; CssClass=&amp;quot;modalDialog&amp;quot; Style=&amp;quot;display: none;&amp;quot;&amp;gt;&lt;br /&gt;      &amp;lt;asp:Image ID=&amp;quot;imgViewLogo&amp;quot; runat=&amp;quot;server&amp;quot; EnableViewState=&amp;quot;false&amp;quot; /&amp;gt;&lt;br /&gt;      &amp;lt;br /&amp;gt;&lt;br /&gt;      &amp;lt;br /&amp;gt;&lt;br /&gt;      &amp;lt;asp:Button ID=&amp;quot;btnClose&amp;quot; runat=&amp;quot;server&amp;quot; EnableViewState=&amp;quot;false&amp;quot; Text=&amp;quot;Close&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;/asp:Panel&amp;gt;&lt;br /&gt;  &amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;  &amp;lt;Triggers&amp;gt;&lt;br /&gt;    &amp;lt;asp:AsyncPostBackTrigger ControlID=&amp;quot;ddlImageType&amp;quot; EventName=&amp;quot;SelectedIndexChanged&amp;quot; /&amp;gt;&lt;br /&gt;  &amp;lt;/Triggers&amp;gt;&lt;br /&gt;&amp;lt;/asp:UpdatePanel&amp;gt;&lt;/pre&gt;&lt;br /&gt; &lt;pre name="code" class="c-sharp"&gt;protected void rptLogos_ItemCommand(object source, RepeaterCommandEventArgs e)
{
  if (e.CommandName == &amp;quot;ViewLogo&amp;quot;)
  {
    string url = (string)e.CommandArgument;
    Image imgViewLogo = e.Item.FindControl(&amp;quot;imgViewLogo&amp;quot;) as Image;
				
    if (imgViewLogo != null)
      imgViewLogo.ImageUrl = url;
				
    mpeViewLogo.Show();
  }
}

protected void rptLogos_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
  RepeaterItem item = e.Item;
  ListItemType itemType = item.ItemType;
			
  if ((itemType == ListItemType.Item) || (itemType == ListItemType.AlternatingItem))
  {
    Image imgLogo = item.FindControl(&amp;quot;imgLogo&amp;quot;) as Image;
    Literal litName = item.FindControl(&amp;quot;litName&amp;quot;) as Literal;
    Literal litSize = item.FindControl(&amp;quot;litSize&amp;quot;) as Literal;
    HyperLink lnkLogo = item.FindControl(&amp;quot;lnkLogo&amp;quot;) as HyperLink;
    LinkButton lbViewLogo = item.FindControl(&amp;quot;lbViewLogo&amp;quot;) as LinkButton;
				
    string name = (string)DataBinder.Eval(item.DataItem, &amp;quot;Name&amp;quot;);
    string url = string.Format(&amp;quot;Logo.ashx?{0}={1}&amp;amp;{2}={3}&amp;quot;, QueryStringArguments.Type, ddlImageType.SelectedValue, QueryStringArguments.Name, name);
    long length = (long)DataBinder.Eval(item.DataItem, &amp;quot;Length&amp;quot;);
				
    if (imgLogo != null)
      imgLogo.ImageUrl = url;
				
    if (litName != null)
      litName.Text = name;
					
    if (litSize != null)
      litSize.Text = string.Format(&amp;quot;({0} bytes)&amp;quot;, length);
					
    if (lnkLogo != null)
      lnkLogo.NavigateUrl = url;
					
    if (lbViewLogo != null)
      lbViewLogo.CommandArgument = url;
  }
}&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; I don&amp;#39;t know what I&amp;#39;m doing wrong here, but I need to find a way to dynamically set the URL of the image control in the panel associated with the ModalPopupExtender, based on the command argument assigned to the link button in the repeater.&lt;/p&gt;&lt;p&gt;Any help would be appreciated.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Change title of main window after returning from modal popup using modalpopupextender</title><link>http://forums.asp.net/thread/3393652.aspx</link><pubDate>Tue, 08 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3393652</guid><dc:creator>barrywalt</dc:creator><description>&lt;p&gt;&amp;nbsp;I have my&amp;nbsp;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;modalpopupextender working well. When complete, I want to change the title of the main window based on the user&amp;#39;s activity in the popup. I know&amp;nbsp;what code to use but not how to get control when the modal window closes.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Use 2 submit buttons in single modal popup</title><link>http://forums.asp.net/thread/3389806.aspx</link><pubDate>Sun, 06 Sep 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3389806</guid><dc:creator>Pankaj.86</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I am begineer to ajax. I have used one modal pop up on my master page, in which i use captcha user control in which i have one submit button named &amp;quot;Submit&amp;quot; and outside of that captcha control i have another button named &amp;quot;Join&amp;quot;. &lt;/p&gt;&lt;p&gt;Now My problem is,&lt;/p&gt;&lt;p&gt;after entering the captch text in text box when i clicked on &amp;quot;submit&amp;quot;&amp;nbsp; button , it closes the entire modal popup, instead of that i just need to close that captcha and need to stay in same modal&amp;nbsp; popup for further work aand after it when i click on &amp;quot;Join&amp;quot; button then modal popup shoul get closed.&lt;/p&gt;&lt;p&gt;Please Help me on this....&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks &amp;amp; regards&lt;/p&gt;&lt;p&gt;Pankaj.86&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Error using ModalPopupExtender with UpdatePanel</title><link>http://forums.asp.net/thread/3373069.aspx</link><pubDate>Thu, 27 Aug 2009 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3373069</guid><dc:creator>GregR</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to use a ModalPopupExtender with an UpdatePanel on it.&amp;nbsp; If I just click the OK or Cancel button, it&amp;#39;s fine.&amp;nbsp; But if a control on the UpdatePanel does a postback and&amp;nbsp;then I click OK or Cancel, I get this error:&lt;/p&gt;
&lt;p style="PADDING-LEFT:30px;"&gt;Microsoft JScript runtime error: Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.&lt;/p&gt;
&lt;p&gt;A google search brings up various solutions for this, but none of them have worked for me.&amp;nbsp;&amp;nbsp;I had the controls working to together in VS2005/.Net 2.0, but I haven&amp;#39;t been able to make this error go away since upgrading to VS2008/.Net 3.5 a week or so&amp;nbsp;ago.&amp;nbsp; Is this an issue with these controls, or&amp;nbsp;have I just missed something here?&amp;nbsp; Here is a simplified code sample that will reproduce the error message:&lt;/p&gt;&lt;pre class="xhtml" name="code"&gt;&amp;lt;asp:LinkButton ID=&amp;quot;btnPopupTest&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;Test ModalPopupExtender With UpdatePanel&amp;lt;/asp:LinkButton&amp;gt;
&amp;lt;ajaxToolkit:ModalPopupExtender ID=&amp;quot;popTest&amp;quot; runat=&amp;quot;server&amp;quot; BackgroundCssClass=&amp;quot;modalBackground&amp;quot; 
    CancelControlID=&amp;quot;btnCancelTest&amp;quot; DropShadow=&amp;quot;true&amp;quot; PopupControlID=&amp;quot;panTest&amp;quot;
    PopupDragHandleControlID=&amp;quot;panTestTitle&amp;quot; TargetControlID=&amp;quot;btnPopupTest&amp;quot;&amp;gt;
&amp;lt;/ajaxToolkit:ModalPopupExtender&amp;gt;
&amp;lt;asp:Panel ID=&amp;quot;panTest&amp;quot; runat=&amp;quot;server&amp;quot; Style=&amp;quot;display: none&amp;quot; CssClass=&amp;quot;modalPopup&amp;quot; Width=&amp;quot;100%&amp;quot;&amp;gt;
    &amp;lt;asp:Panel ID=&amp;quot;panTestTitle&amp;quot; runat=&amp;quot;server&amp;quot; 
        Style=&amp;quot;cursor: move; background-color:#7FBA00; border:solid 1px Gray; color:Black&amp;quot;&amp;gt;
        &amp;lt;div&amp;gt;
            &amp;lt;h2 style=&amp;quot;padding-top:0px; padding-bottom:0px; margin-top:0px; margin-bottom:0px; color: white;&amp;quot;&amp;gt;
                Assessment Information&amp;lt;/h2&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/asp:Panel&amp;gt;
    &amp;lt;asp:UpdatePanel ID=&amp;quot;upTest&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
        &amp;lt;ContentTemplate&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;asp:Label ID=&amp;quot;lblTestMsg&amp;quot; runat=&amp;quot;server&amp;quot; Style=&amp;quot;color:Red&amp;quot; 
                    Text=&amp;quot;Clicking OK or Cancel works now.&amp;quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/p&amp;gt;
            &amp;lt;p&amp;gt;
                &amp;lt;asp:Button ID=&amp;quot;btnTest&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Make OK And Cancel Throw Error&amp;quot; /&amp;gt;&amp;lt;/p&amp;gt;
        &amp;lt;/ContentTemplate&amp;gt;
    &amp;lt;/asp:UpdatePanel&amp;gt;
    &amp;lt;p style=&amp;quot;text-align: center&amp;quot;&amp;gt;
        &amp;lt;asp:Button ID=&amp;quot;btnOkTest&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;OK&amp;quot; UseSubmitBehavior=&amp;quot;false&amp;quot; /&amp;gt;
        &amp;lt;asp:Button ID=&amp;quot;btnCancelTest&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Cancel&amp;quot; UseSubmitBehavior=&amp;quot;False&amp;quot; /&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;/asp:Panel&amp;gt;
&lt;/pre&gt;
&lt;p&gt;The only code behind this is the following:&lt;/p&gt;&lt;pre class="vb.net" name="code"&gt;Protected Sub btnTest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTest.Click
    lblTestMsg.Text = &amp;quot;Clicking OK or Cancel will throw an error now.&amp;quot;
End Sub&lt;/pre&gt;
&lt;p&gt;I&amp;#39;d really appreciate any insight on getting the ModalPopupExtender and UpdatePanel to work together in VS2008 and .Net 3.5, as I&amp;#39;ve been pulling my hair out over this for several days now!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Greg&lt;/p&gt;</description></item></channel></rss>