a) frmPatientTreatment.aspx <td> <asp:Button ID="btnSaveForFuture" runat="server" Text="SaveForFuture" TabIndex="20" /> <asp:PopupControlExtender ID="PopEx" runat="server" TargetControlID="btnSaveForFuture" PopupControlID="Panel3" Position="Bottom" /> </td> <asp:Panel ID="Panel3" runat="server" Width="250px" Visible="true" BackColor="WhiteSmoke"> <asp:UpdatePanel runat="server" ID="upSaveForFuture"> <ContentTemplate> <table style="text-align: left"> <tr> <td colspan="3" style="text-align: Left"> <asp:CheckBox ID="cbAllDoctor" Text="All Doctor" runat="server" AutoPostBack="true" OnCheckedChanged="cbAllDoctor_CheckedChanged" TabIndex="21" /> </td> </tr> <tr> <td> FormatName </td> <td style="color: Red"> </td> <td> <asp:TextBox ID="txtFormatName" runat="server" TabIndex="22"></asp:TextBox> </td> </tr> <tr> <td colspan="2"> </td> <td style="text-align: Left"> <asp:Button ID="btnSaveFormat" runat="server" Text="Save" OnClick="btnSaveFormat_Click" TabIndex="23" /> <%-- </td> <td>--%> <asp:Button ID="btnCancle" runat="server" Text="Cancle" CausesValidation="false" OnClick="btnCancle_Click" TabIndex="24" /> </td> </tr> </table> </ContentTemplate> </asp:UpdatePanel> </asp:Panel> b) frmPatientTreatment.aspx.cs protected void btnCancle_Click(object sender, EventArgs e) { PopEx.Cancel(); } protected void btnSaveFormat_Click(object sender, EventArgs e) { if (!(txtFormatName.Text.Equals(string.Empty))) { string Message = ""; Message = InsertInPatientTreatmentDetailFormat(); Reset(); DynamicMessage(lblMessage, Message); PopEx.Commit(""); } } private string InsertInPatientTreatmentDetailFormat() { string Message = "0"; InsertPatientTreatmentDetailFormat(); return Message; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)