asp.net model popup extender
<p>I am using ajax model popup extender in my asp.net page. From my page , on click of Save button , i popup panel using model popup extender. </p>

<p>If i cause postback from model popup , my backend (asp.net) form controls are coming front (ie) in the panel. </p>

<p>Here is my code snippet,</p>

<pre><code>&lt;form id="form1" runat="server"&gt;
                        &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
                        &lt;/asp:ScriptManager&gt;
                        &lt;asp:UpdatePanel ID="up_Save" runat="server"&gt;
                          &lt;ContentTemplate&gt;
                            &lt;div&gt;                               
                              &lt;table border="0" cellpadding="2" cellspacing="2" width="100%"&gt;                                                
                                &lt;tr&gt;
                                  &lt;td align="center" colspan="4"&gt;
                                    &lt;asp:Button ID="btn_Save" runat="server"  Text="Save" Width="15%" OnClick="btn_Save_Click" /&gt;                                                                   

                                    &lt;/td&gt;
                                &lt;/tr&gt;
                              &lt;/table&gt;                              
                            &lt;/div&gt;
                          &lt;/ContentTemplate&gt;                          
                        &lt;/asp:UpdatePanel&gt;                 

                        &lt;cc1:ModalPopupExtender ID="BarrierRelayPopup" runat="server" PopupControlID="PopUp_Panel" TargetControlID="hiddenfield" CancelControlID="btn_Cancel_PopUp"&gt;
                        &lt;/cc1:ModalPopupExtender&gt;
                        &lt;asp:HiddenField ID="hiddenfield" runat="server" /&gt;

                        &lt;asp:Panel runat="server" ID="PopUp_Panel" Width="50%" Height="30%" BackColor="Gainsboro" BorderStyle="Groove" &gt;
                          &lt;asp:UpdatePanel runat="server" ID="PopUp"&gt;
                            &lt;ContentTemplate&gt;
                              &lt;table&gt;
                                &lt;tr&gt;
                                  &lt;td align="left"&gt;
                                    &lt;asp:Label ID="lbl_Heading" runat="server" Text="Select Relay and Barrier :"&gt;&lt;/asp:Label&gt;
                                  &lt;/td&gt;
                                &lt;/tr&gt;
                                &lt;tr&gt;
                                  &lt;td&gt;
                                    &lt;B_R:Barrier_Relay ID="Barrier_Relay" runat="server"/&gt;
                                  &lt;/td&gt;
                                &lt;/tr&gt;
                                &lt;tr&gt;
                                  &lt;td align="center"&gt;
                                    &lt;asp:Button ID="btn_OK" runat="server" Width="60px"  Text="OK" OnClick="btn_OK_Click" /&gt; &amp;nbsp; &lt;asp:Button ID="btn_Cancel_PopUp" runat="server" Width="60px" Text="Cancel" OnClick="btn_Cancel_PopUp_Click"/&gt;
                                  &lt;/td&gt;
                                &lt;/tr&gt;
                              &lt;/table&gt;
                            &lt;/ContentTemplate&gt;
                          &lt;/asp:UpdatePanel&gt;
                        &lt;/asp:Panel&gt;
                      &lt;/form&gt;             
</code></pre>

<p>Can anybody help me in this.</p>
