<form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <div> <div id="popupDiv" style="width:314px; height:267px; background-color:Yellow; text-align:centre; display:none"> <asp:Button ID="BtnPostBack" runat="server" Text="PostBack" onclick="BtnPostBack_Click" /><br /> <asp:Label ID="Label1" runat="server"></asp:Label><br /> <asp:Button ID="btnclose" runat="server" Text="Close" /> </div> <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" CancelControlID="btnclose" Enabled="True" PopupControlID="popupDiv" TargetControlID="btnOpenPopup"> </cc1:ModalPopupExtender> <asp:Button ID="btnOpenPopup" runat="server" Text="Click to Display Popup" /> </div> </form>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)