Modalpopup with UpdatePanel
<p>I have an autocompleteextender that displays the list of countries. In the same textbox, when I type something and click on "Search" button, a pop-up should be opened and should display the matching countries. I am using modalpopupextender for the popup. </p>

<p>aspx code:</p>

<pre><code>     &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"&gt;
       &lt;contenttemplate&gt;
         &lt;asp:TextBox id="TextBox1" runat="server" Width="250px"&gt;&lt;/asp:TextBox&gt;
         &lt;asp:ImageButton id="ImageButton1" onclick="imgBtnSearch_Click" runat="server" ImageUrl="~/Images/Lab/search.jpg"&gt;&lt;/asp:ImageButton&gt;
         &lt;cc1:AutoCompleteExtender id="TextBox1_AutoCompleteExtender" runat="server" EnableCaching="true" CompletionSetCount="10" MinimumPrefixLength="1" ServicePath="AutoComplete.asmx" UseContextKey="True" TargetControlID="TextBox1" ServiceMethod="GetCountryInfo"&gt;
        &lt;/cc1:AutoCompleteExtender&gt; 
         &lt;cc1:ModalPopupExtender id="ModalPopupExtender1" runat="server" TargetControlID="ImageButton1" BackgroundCssClass="ModalPopupBG" Drag="true" PopupDragHandleControlID="PopupHeader" PopupControlID="updatePanel2"  CancelControlID="btnCancel" &gt;&lt;/cc1:ModalPopupExtender&gt; 

     &lt;/contenttemplate&gt;
     &lt;/asp:UpdatePanel&gt;
  &lt;asp:UpdatePanel id="updatePanel2" runat="server" UpdateMode="Conditional"&gt;
         &lt;ContentTemplate&gt;
                     &lt;asp:RadioButtonList id="RadioButtonList1" runat="server" Width="400" Height="400" RepeatColumns="5" RepeatLayout="Table" RepeatDirection="Vertical" AutoPostBack="True"&gt;&lt;/asp:RadioButtonList&gt; 

            &lt;DIV class="Controls"&gt;
                &lt;INPUT id="btnOk" type="button" value="OK" /&gt;
                &lt;INPUT id="btnCancel" type="button" value="Cancel" /&gt;
            &lt;/DIV&gt;

        &lt;/ContentTemplate&gt;
        &lt;Triggers&gt;
        &lt;asp:AsyncPostBackTrigger ControlID="ImageButton1" EventName="Click"&gt;&lt;/asp:AsyncPostBackTrigger&gt;
        &lt;/Triggers&gt;
    &lt;/asp:UpdatePanel&gt; 
</code></pre>

<p>And in my codebehind: </p>

<pre><code> protected void imgBtnSearch_Click(object sender, ImageClickEventArgs e) 
 {
   LoadCountryPopUp();
   ModalPopupExtender1.Show();
 }
</code></pre>

<p>I am not getting any countries in my popup, although I get results via my autocompleteextender. On clicking the imagebutton, I get the popup without any content. Pls help!</p>
