I’m using the modalpopupextender control.
So far it’s working okay. I can display it I then have a button within the panel that when clicked goes off and does some action.
Once the button is clicked the action is completed and the panel is hidden (I’m guessing because the page is reloaded).
I like to include a additional statement within the button code that based on a condition either completes actions, or updates the text of a label control within the panel.
So the question is how do I stop the panel from automatically closing?
TIA
C#ASP.NET
Last Comment
harshada_sonawane
8/22/2022 - Mon
Obadiah Christopher
<asp:Button id="btn1" runat="server" OnClientClick="javascript:return BtnClick();" Text="Button"></asp:Button>function BtnClick(){ if(chck condition if change label....) { // Write code to change label text return false; } else { // write code to post back return true; }}
Open in new window