Button click does not work with target control id of ModelPopUp...http://forums.asp.net/t/1786049.aspx/1?Button+click+does+not+work+with+target+control+id+of+ModelPopUp+Wed, 28 Mar 2012 04:18:00 -040017860494902838http://forums.asp.net/p/1786049/4902838.aspx/1?Button+click+does+not+work+with+target+control+id+of+ModelPopUp+Button click does not work with target control id of ModelPopUp... &lt;div&gt; <p>Is there any problem If We use Button click event &amp; ModelPopUpExtender On same button ???</p> <p>i.e.</p> <p>&lt;asp:button id=&quot;btnSubmit&quot; runat=&quot;server&quot; Text=&quot;Submit&quot; OnClick=&quot;btnSubmit_Click&quot;&gt;</p> <p>&lt;asp:ModalPopupExtender ID=&quot;mpe&quot; runat=&quot;server&quot; TargetControlID=&quot;btnSubmit&quot; PopupControlID=&quot;plRegistrySubmit&quot;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CancelControlID=&quot;btnRegistryCancel&quot;&gt;<br> &nbsp;&lt;/asp:ModalPopupExtender&gt;</p> <p>&lt;asp:Panel id=&quot;plRegistrySubmit&quot; runat=&quot;server&quot;&gt;</p> <p>Hello</p> <p>&lt;/Panel&gt;</p> <p><strong>In Code Behind, I have fired some events on btnSubmit_Click</strong>...</p> <p><strong>So When I am running this code, I can see only PopUp Panel But btnSubmit_Click is not firing</strong>...</p> <p>I dnt want to use any web services, so is there any way by which i can solve my problem ???</p> &lt;/div&gt; 2012-03-28T03:54:50-04:004902850http://forums.asp.net/p/1786049/4902850.aspx/1?Re+Button+click+does+not+work+with+target+control+id+of+ModelPopUp+Re: Button click does not work with target control id of ModelPopUp... <p>it should work.. have you followed the link i have suggested here ?</p> <p><strong>anyhow post your code ? i will check and reply you</strong></p> <p>hi, <strong>if you set TargetControlID=&quot;btnSubmit&quot; then btnSubmit_Click will not execute.</strong></p> <p><strong>to do that just define label with style=&quot;display:none&quot; set</strong> TargetControlID=&quot;label1&quot;</p> <p>to show<strong> the popup use mpe.Show(), to close mpe.Hide()</strong></p> <p>Refer : <a href="http://forums.asp.net/t/1683244.aspx/1?How&#43;to&#43;Call&#43;ModelPopUp&#43;Target&#43;Control&#43;Button&#43;Code&#43;Behind&#43;Code"> http://forums.asp.net/t/1683244.aspx/1?How&#43;to&#43;Call&#43;ModelPopUp&#43;Target&#43;Control&#43;Button&#43;Code&#43;Behind&#43;Code</a></p> 2012-03-28T04:04:54-04:004902874http://forums.asp.net/p/1786049/4902874.aspx/1?Re+Button+click+does+not+work+with+target+control+id+of+ModelPopUp+Re: Button click does not work with target control id of ModelPopUp... <p></p> <blockquote><span class="icon-blockquote"></span> <h4>karthicks</h4> <p></p> <p>hi, <strong>if you set TargetControlID=&quot;btnSubmit&quot; then btnSubmit_Click will not execute.</strong></p> <p><strong>to do that just define label with style=&quot;display:none&quot; set</strong> TargetControlID=&quot;label1&quot;</p> <p>to show<strong> the popup use mpe.Show(), to close mpe.Hide()</strong></p> <p></p> </blockquote> <p></p> <p>Its nt working...</p> <p></p> 2012-03-28T04:18:00-04:00