Tuesday, 3 March 2015

How to add popup modal on button


 Design.aspx

<table width="100%">


        <tr>

            <td align="left" >


                <asp:Button ID="btnsurveydone" runat="server" Text="Survey Done" OnClick="btnsurveydone_Click" CssClass="buttonclassMenu2" BorderStyle="Outset" Width="139px" />
                
                 <asp:ModalPopupExtender ID="btnsurveydone_ModalPopupExtender" runat="server"  Enabled="True" TargetControlID="btnsurveydone" CancelControlID="btnok" PopupControlID="pnlsurveydone" >
                </asp:ModalPopupExtender>
                
                 <asp:Button ID="btnuncomplited" runat="server" Text="Uncomplited Survey" OnClick="btnuncomplited_Click" CssClass="buttonclassMenu2" BorderStyle="Outset" Width="139px"  />
                 <asp:Button ID="btninterval" runat="server" Text="Monthly Report"  OnClick="btninterval_Click" Width="139px" CssClass="buttonclassMenu2" BorderStyle="Outset"  />
                <asp:Button ID="btnEditprofile" runat="server" Text="Edit Profile"  OnClick="btnEditprofile_Click" CssClass="buttonclassMenu2" BorderStyle="Outset" Width="139px"  />
                <asp:Button ID="btnback" runat="server" Text="Back" CssClass="buttonclassMenu" OnClick="btnback_Click" />
            </td>

        </tr>
<tr>
<td>
<asp:Panel ID="pnlsurveydone" runat="server" BackColor="Silver" BorderColor="Green" BorderStyle="Ridge" Height="163px" Width="352px">
</td>
</tr>

No comments:

Post a Comment