<asp:Label ID="lblsubjectmassageshow" runat="server" Text="" CssClass="lblsubjectmassage" Visible="false"> <cc1:modalpopupextender ID="mp1" runat="server" PopupControlID="popUpPanel" TargetControlID="LinkButton5" CancelControlID="btnclose" BackgroundCssClass="modalBackground"> <asp:Panel ID="popUpPanel" runat="server"> <div id="loginform" style="border: Solid 3px #123a6b;<br mode=" hold=" /> width: 100%; height: 140px"> cellpadding="0" cellspacing="0"> <table> <tr> <td class="redstar"> </td> <td style="background-color: #123a6b" colspan="1" hold=" />font-weight: bold; font-size: larger"> align="center"> <span style="color:White"> Add elective group</span> </td> </tr> <tr> <td><span class="txt"><span class="textcolorarkblack"> <br /> Name:</span> </span><span class="redstar">*</span></td> <td> <br /><asp:TextBox ID="txtelectivename" runat="server" placeholder=" Name" Width="186px"> <asp:RequiredFieldValidator ID="rfvUserName" runat="server" ErrorMessage="Please enter User Name" ControlToValidate="txtelectivename" Display="Dynamic" ForeColor="Red"> <asp:RegularExpressionValidator Display = "Dynamic" ControlToValidate = "txtelectivename" ForeColor="Red" ID="RegularExpressionValidator1" ValidationExpression = "^[\s\S]{0,50}$" runat="server" ErrorMessage="Maximum 50 characters allowed."> </td> </tr> <tr> <td></td> <td><br /><asp:Button ID="btnsubmitelectivegroup" onclick="btnelectivesubmit" runat="server" Text="Save" Height="40px" Width="80px" ForeColor="White" BackColor="#123A6B" /> <asp:Button ID="btnclose" runat="server" Height="40px" Width="80px" ForeColor="White" BackColor="#123A6B" Text="Close" CausesValidation="false" /></td> </tr> </table> </div>
protected void btnelectivesubmit(object sender, EventArgs e) { InsertElectGroupwithBatchId electivegroup = new InsertElectGroupwithBatchId(); InsertElectivegroupBatchIddInput electivegroupinput = new InsertElectivegroupBatchIddInput(); checkExistingDatawhileinsertigOutput checkoutput = new checkExistingDatawhileinsertigOutput(); electivegroupinput.Name = dropdownbatch.SelectedItem.Text; electivegroupinput.Elective_Name = txtelectivename.Text.ToString().Trim(); electivegroup.Execute(electivegroupinput); //checkoutput = electivegroup.Execute(electivegroupinput); lblsubjectmassageshow.Text = "Elective group successfully created"; // lblsubjectmassageshow.Text = checkoutput.message; lblsubjectmassageshow.Visible = true; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)