<ajax:ModalPopupExtender ID="mp1" runat="server" PopupControlID="Panel1" TargetControlID="btnShowPopUp" CancelControlID="btnClose" BackgroundCssClass="modalBackground"> </ajax:ModalPopupExtender>
Sub btnShow_Click(ByVal sender As Object, ByVal e As EventArgs) if myVariable = 1 then mp1.show End if End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)