Employee Registration form Creation in Asp.net C#

Employee Registration form Creation in Asp.net C#. How to create an Employee Regform after Recruitment or job announcement page in asp.net | Complete front end designing and backend coding.

Complied designing and backend coding of file for any employee regform in asp.net project page creation using visual studio and C# language.

<%@ Page Title=”” Language=”C#” MasterPageFile=”~/app_theme/MasterPageAdmin.master” AutoEventWireup=”true” CodeFile=”EmployeeeRegistration.aspx.cs” Inherits=”admin_EmployeeeRegistration” %>

<div class="row-fluid sortable">
            <div class="box span12">
                <div class="box-header well" data-original-title>
                    <h2><i class="icon-th"></i> Employee Registration</h2>
                    <div class="box-icon">
                        <a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
                        <a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
                        <a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
                    </div>
                </div>
                <div class="box-content">
                  <div class="row-fluid">

                    <br />
                    <%--Start Content--%>

                    <table>
            <tr>
                <td  colspan="3"><font><strong>                      <asp:Label 
                        ID="Label2" runat="server" class="btn btn-primary" ></asp:Label>
                    </strong></font></td>
                <td >                 
                    <asp:hyperlink id="HyperLink1" runat="server" Navigateurl="AdminOptions.aspx" 
                        ToolTip="Admin Options Page" >Back</asp:hyperlink></td>
            </tr>
            <tr>
                <td  ><strong>Employee Id</strong></td>
                <td ><asp:textbox id="txtEmployeeId" runat="server" Height="25px" Width="208px" data-rel="popover" data-content="Enter Employee ID Through Which He will be login "  title="Enter ID"></asp:textbox>  
                    <asp:requiredfieldvalidator id="Requiredfieldvalidator4" runat="server" ErrorMessage="*" ControlToValidate="txtEmployeeId"></asp:requiredfieldvalidator></td>
                <td  ><strong>Loan</strong></td>
                <td >
                    <asp:radiobutton id="rb_Loan_Yes" runat="server" 
                        GroupName="k" Text="Yes" oncheckedchanged="rb_Loan_Yes_CheckedChanged" 
                        Width="70px" CausesValidation="True" Checked="True" 
                        ></asp:radiobutton> 
                    <asp:radiobutton id="rb_Loan_No" runat="server" GroupName="k" Text="No" 
                        oncheckedchanged="rb_Loan_No_CheckedChanged" Width="70px" ></asp:radiobutton></td>
            </tr>
            <tr>
                <td  ><strong>Employee Name</strong></td>
                <td ><asp:textbox id="txtEmployeeName" runat="server" Height="25px" Width="208px" onkeyup="onlyText(this);" data-rel="popover" data-content="Enter Name Of Employee."  title="Emp Name"></asp:textbox>  
                    <asp:requiredfieldvalidator id="Requiredfieldvalidator5" runat="server" ErrorMessage="*" ControlToValidate="txtEmployeeName"></asp:requiredfieldvalidator></td>
                <td  ><strong><strong>Description</strong></strong></td>
                <td ><asp:textbox id="txtLoanDescription" runat="server" Height="25px" Width="208px" TextMode="MultiLine" data-rel="popover" data-content="Enter Loan Description If Any.... "  title="Loan"></asp:textbox></td>
            </tr>
            <tr>
                <td  ><strong>Gender</strong></td>
                <td >
                    <br />
                   <%-- <input type="radio" id="rb_Gender_Male" runat="server" name="f" 
                        oncheckedchanged="rb_Gender_Male_CheckedChanged" onclick="return rb_Gender_Male_onclick()" /> Male  

                        <input id="rb_Gender_Female" type="radio" runat="server"
                    name="f" />Female   --%>

                       <asp:radiobutton id="rb_Gender_Male" 
                        runat="server" Text="Male" Checked="True" GroupName="f" 
                        oncheckedchanged="rb_Gender_Male_CheckedChanged" Width="70px" 
                        CausesValidation="True" ></asp:radiobutton> 
                    <asp:radiobutton id="rb_Gender_Female" runat="server" Text="Female" 
                        GroupName="f" Width="70px" ></asp:radiobutton>       
                     </td>
                <td  ><strong><strong><strong><strong>Documents</strong></strong></strong></strong></td>
                <td >
                    <asp:radiobutton id="rb_Document_Yes" runat="server" 
                        GroupName="D" Text="Yes" oncheckedchanged="rb_Document_Yes_CheckedChanged" 
                        Width="70px" Checked="True" 
                        ></asp:radiobutton> 
                    <asp:radiobutton id="rb_Document_No" runat="server" GroupName="D" Text="No" 
                        oncheckedchanged="rb_Document_No_CheckedChanged" Width="70px" ></asp:radiobutton></td>
            </tr>
            <tr>
                <td  ><strong>Designation</strong></td>
                <td style="WIDTH: 248px; HEIGHT: 29px"><asp:dropdownlist id="drDesignation" class="controls" data-rel="chosen" runat="server" Width="168px">
                        <asp:ListItem Value="Select">Select</asp:ListItem>
                        <asp:ListItem Value="Buisness Development Manager">Buisness Development Manager</asp:ListItem>
                        <asp:ListItem Value="HR Manager">HR Manager</asp:ListItem>
                        <asp:ListItem Value="Project Manager">Project Manager</asp:ListItem>
                        <asp:ListItem Value="Design Engineer">Design Engineer</asp:ListItem>
                        <asp:ListItem Value="Sr.Programmer">Sr.Programmer</asp:ListItem>
                        <asp:ListItem Value="Developer">Developer</asp:ListItem>
                        <asp:ListItem Value="Programmer">Programmer</asp:ListItem>
                        <asp:ListItem Value="Marketting Manger">Marketting Manger</asp:ListItem>
                        <asp:ListItem Value="Counsellor">Counsellor</asp:ListItem>
                        <asp:ListItem Value="OfficeBoy">OfficeBoy</asp:ListItem>
                    </asp:dropdownlist></td>
                <td  ><strong><strong><strong><strong>Description</strong></strong></strong></strong></td>
                <td style="HEIGHT: 29px"><asp:textbox id="txtDoumentDescription" runat="server" Height="25px" Width="208px" TextMode="MultiLine" data-rel="popover" data-content="Enter Description If Any.... "  title="Documents"></asp:textbox></td>
            </tr>
            <tr>
                <td  ><strong>Qualification</strong></td>
                <td style="WIDTH: 248px; HEIGHT: 24px"><asp:dropdownlist id="drQualification" class="controls" data-rel="chosen" runat="server" Width="96px" onselectedindexchanged="drQualification_SelectedIndexChanged">
                        <asp:ListItem Value="Select">Select</asp:ListItem>
                        <asp:ListItem Value="ME">ME</asp:ListItem>
                        <asp:ListItem Value="BE">BE</asp:ListItem>
                        <asp:ListItem Value="Bsc-Maths">Bsc-Maths</asp:ListItem>
                        <asp:ListItem Value="Msc">Msc</asp:ListItem>
                        <asp:ListItem Value="MCA">MCA</asp:ListItem>
                        <asp:ListItem Value="MBA">MBA</asp:ListItem>
                    </asp:dropdownlist></td>
                <td  ><strong><strong><strong><strong><strong><strong><strong>ExtraCurriculam </strong>
                                        </strong></strong></strong></strong></strong></strong>
                </td>
                <td style="HEIGHT: 24px">
                    <asp:radiobutton id="rb_extra_yes" runat="server" 
                        GroupName="E" Text="Yes" oncheckedchanged="rb_extra_yes_CheckedChanged" 
                        Width="70px" Checked="True" 
                        ></asp:radiobutton> 
                    <asp:radiobutton id="rb_extra_No" runat="server" GroupName="E" Text="No" 
                        oncheckedchanged="rb_extra_No_CheckedChanged" Width="70px" ></asp:radiobutton></td>
            </tr>
            <tr>
                <td  ><strong>Experience</strong></td>
                <td style="WIDTH: 248px; HEIGHT: 1px"><asp:dropdownlist id="drExperience" class="controls" data-rel="chosen" runat="server" Width="168px">
                        <asp:ListItem Value="Select">Select</asp:ListItem>
                        <asp:ListItem Value="0 to 1Year">0 to 1Year</asp:ListItem>
                        <asp:ListItem Value="1 to 2Years">1 to 2Years</asp:ListItem>
                        <asp:ListItem Value="2 to 3Years">2 to 3Years</asp:ListItem>
                        <asp:ListItem Value="3 to 4Years">3 to 4Years</asp:ListItem>
                        <asp:ListItem Value="4 to 5Years">4 to 5Years</asp:ListItem>
                        <asp:ListItem Value="5 to 6Years">5 to 6Years</asp:ListItem>
                        <asp:ListItem Value="6 to 7Years">6 to 7Years</asp:ListItem>
                        <asp:ListItem Value="7 to 8Years">7 to 8Years</asp:ListItem>
                        <asp:ListItem Value="8 to 9years">8 to 9years</asp:ListItem>
                        <asp:ListItem Value="9 t0 10years">9 t0 10years</asp:ListItem>
                        <asp:ListItem Value="Above 10Years">Above 10Years</asp:ListItem>
                    </asp:dropdownlist></td>
                <td  ><strong><strong><strong><strong>Description</strong></strong></strong></strong></td>
                <td style="HEIGHT: 15px"><asp:textbox id="txtExtraDescription" runat="server" Height="25px" Width="208px" TextMode="MultiLine" data-rel="popover" data-content="Enter Description If Any.... "  title="Extra Curriculam"></asp:textbox></td>
            </tr>
            <tr>
                <td  ><strong>Date Of Birth [m/d/y]</strong></td>
                <td style="WIDTH: 248px; HEIGHT: 30px">
                    <asp:dropdownlist id="drDobMonth" class="controls" data-rel="chosen" style="font-SIZE: 10pt; COLOR: #000000; font-FAMILY: Arial, Tahoma, Verdana, Helvetica"
                        runat="server" Width="60px" DataTextField="age_desc" DataValueField="age_id">
                        <asp:ListItem Value="01">01</asp:ListItem>
                        <asp:ListItem Value="02">02</asp:ListItem>
                        <asp:ListItem Value="03">03</asp:ListItem>
                        <asp:ListItem Value="04">04</asp:ListItem>
                        <asp:ListItem Value="05">05</asp:ListItem>
                        <asp:ListItem Value="06">06</asp:ListItem>
                        <asp:ListItem Value="07">07</asp:ListItem>
                        <asp:ListItem Value="08">08</asp:ListItem>
                        <asp:ListItem Value="09">09</asp:ListItem>
                        <asp:ListItem Value="10">10</asp:ListItem>
                        <asp:ListItem Value="11">11</asp:ListItem>
                        <asp:ListItem Value="12">12</asp:ListItem>
                    </asp:dropdownlist> 
                    <asp:dropdownlist id="drDobDate" class="controls" data-rel="chosen" style="font-SIZE: 10pt; COLOR: #000000; font-FAMILY: Arial, Tahoma, Verdana, Helvetica"
                        runat="server" Width="60px" DataTextField="age_desc" DataValueField="age_id">
                        <asp:ListItem Value="01">01</asp:ListItem>
                        <asp:ListItem Value="02">02</asp:ListItem>
                        <asp:ListItem Value="03">03</asp:ListItem>
                        <asp:ListItem Value="04">04</asp:ListItem>
                        <asp:ListItem Value="05">05</asp:ListItem>
                        <asp:ListItem Value="06">06</asp:ListItem>
                        <asp:ListItem Value="07">07</asp:ListItem>
                        <asp:ListItem Value="08">08</asp:ListItem>
                        <asp:ListItem Value="09">09</asp:ListItem>
                        <asp:ListItem Value="10">10</asp:ListItem>
                        <asp:ListItem Value="11">11</asp:ListItem>
                        <asp:ListItem Value="12">12</asp:ListItem>
                        <asp:ListItem Value="13">13</asp:ListItem>
                        <asp:ListItem Value="14">14</asp:ListItem>
                        <asp:ListItem Value="15">15</asp:ListItem>
                        <asp:ListItem Value="16">16</asp:ListItem>
                        <asp:ListItem Value="17">17</asp:ListItem>
                        <asp:ListItem Value="18">18</asp:ListItem>
                        <asp:ListItem Value="19">19</asp:ListItem>
                        <asp:ListItem Value="20">20</asp:ListItem>
                        <asp:ListItem Value="21">21</asp:ListItem>
                        <asp:ListItem Value="22">22</asp:ListItem>
                        <asp:ListItem Value="23">23</asp:ListItem>
                        <asp:ListItem Value="24">24</asp:ListItem>
                        <asp:ListItem Value="25">25</asp:ListItem>
                        <asp:ListItem Value="26">26</asp:ListItem>
                        <asp:ListItem Value="27">27</asp:ListItem>
                        <asp:ListItem Value="28">28</asp:ListItem>
                        <asp:ListItem Value="29">29</asp:ListItem>
                        <asp:ListItem Value="30">30</asp:ListItem>
                        <asp:ListItem Value="31">31</asp:ListItem>
                    </asp:dropdownlist><strong> </strong>
                    <asp:dropdownlist id="drDobYear" class="controls" data-rel="chosen" style="font-SIZE: 10pt; COLOR: #000000; font-FAMILY: Arial, Tahoma, Verdana, Helvetica"
                        runat="server" Width="70px" DataTextField="age_desc" DataValueField="age_id" Height="28px">

                        <asp:ListItem Value="2013">2013</asp:ListItem>
                        <asp:ListItem Value="2012">2012</asp:ListItem>
                        <asp:ListItem Value="2011">2011</asp:ListItem>
                        <asp:ListItem Value="2010">2010</asp:ListItem>
                        <asp:ListItem Value="2009">2009</asp:ListItem>
                        <asp:ListItem Value="2008">2008</asp:ListItem>
                        <asp:ListItem Value="2007">2007</asp:ListItem>
                        <asp:ListItem Value="2006">2006</asp:ListItem>
                        <asp:ListItem Value="2005">2005</asp:ListItem>
                        <asp:ListItem Value="2004">2004</asp:ListItem>
                        <asp:ListItem Value="2003">2003</asp:ListItem>
                        <asp:ListItem Value="2002">2002</asp:ListItem>
                        <asp:ListItem Value="2001">2001</asp:ListItem>
                        <asp:ListItem Value="2000">2000</asp:ListItem>
                        <asp:ListItem Value="1999">1999</asp:ListItem>
                        <asp:ListItem Value="1998">1998</asp:ListItem>
                        <asp:ListItem Value="1997">1997</asp:ListItem>
                        <asp:ListItem Value="1996">1996</asp:ListItem>
                        <asp:ListItem Value="1995">1995</asp:ListItem>
                        <asp:ListItem Value="1994">1994</asp:ListItem>
                        <asp:ListItem Value="1993">1993</asp:ListItem>
                        <asp:ListItem Value="1992">1992</asp:ListItem>
                        <asp:ListItem Value="1991">1991</asp:ListItem>
                        <asp:ListItem Value="1990">1990</asp:ListItem>
                        <asp:ListItem Value="1989">1989</asp:ListItem>
                        <asp:ListItem Value="1988">1988</asp:ListItem>
                        <asp:ListItem Value="1987">1987</asp:ListItem>
                        <asp:ListItem Value="1986">1986</asp:ListItem>
                        <asp:ListItem Value="1985">1985</asp:ListItem>
                        <asp:ListItem Value="1984">1984</asp:ListItem>
                        <asp:ListItem Value="1983">1983</asp:ListItem>
                        <asp:ListItem Value="1982">1982</asp:ListItem>
                        <asp:ListItem Value="1981">1981</asp:ListItem>
                        <asp:ListItem Value="1980">1980</asp:ListItem>

                    </asp:dropdownlist></td>
                <td  ><strong>ClubMembership
                                    </strong></td>
                <td style="HEIGHT: 30px">
                    <asp:radiobutton id="rb_club_yes" runat="server" 
                        GroupName="C" Text="Yes" oncheckedchanged="rb_club_yes_CheckedChanged" 
                        Width="70px" Checked="True" 
                        ></asp:radiobutton> 
                    <asp:radiobutton id="rb_club_No" runat="server" GroupName="C" Text="No" 
                        oncheckedchanged="rb_club_No_CheckedChanged" Width="70px" ></asp:radiobutton></td>
            </tr>
            <tr>
                <td  ><strong>Date Of Join [m/d/y]</strong></td>
                <td style="WIDTH: 248px; HEIGHT: 31px">
                    <asp:dropdownlist id="drDojMonth" class="controls" data-rel="chosen" style="font-SIZE: 10pt; COLOR: #000000; font-FAMILY: Arial, Tahoma, Verdana, Helvetica"
                        runat="server" Width="60px" DataTextField="age_desc" DataValueField="age_id">
                        <asp:ListItem Value="01">01</asp:ListItem>
                        <asp:ListItem Value="02">02</asp:ListItem>
                        <asp:ListItem Value="03">03</asp:ListItem>
                        <asp:ListItem Value="04">04</asp:ListItem>
                        <asp:ListItem Value="05">05</asp:ListItem>
                        <asp:ListItem Value="06">06</asp:ListItem>
                        <asp:ListItem Value="07">07</asp:ListItem>
                        <asp:ListItem Value="08">08</asp:ListItem>
                        <asp:ListItem Value="09">09</asp:ListItem>
                        <asp:ListItem Value="10">10</asp:ListItem>
                        <asp:ListItem Value="11">11</asp:ListItem>
                        <asp:ListItem Value="12">12</asp:ListItem>
                    </asp:dropdownlist> 
                    <asp:dropdownlist id="drDojDate" class="controls" data-rel="chosen" style="font-SIZE: 10pt; COLOR: #000000; font-FAMILY: Arial, Tahoma, Verdana, Helvetica"
                        runat="server" Width="60px" DataTextField="age_desc" DataValueField="age_id" 
                        onselectedindexchanged="drDojDate_SelectedIndexChanged">
                        <asp:ListItem Value="01">01</asp:ListItem>
                        <asp:ListItem Value="02">02</asp:ListItem>
                        <asp:ListItem Value="03">03</asp:ListItem>
                        <asp:ListItem Value="04">04</asp:ListItem>
                        <asp:ListItem Value="05">05</asp:ListItem>
                        <asp:ListItem Value="06">06</asp:ListItem>
                        <asp:ListItem Value="07">07</asp:ListItem>
                        <asp:ListItem Value="08">08</asp:ListItem>
                        <asp:ListItem Value="09">09</asp:ListItem>
                        <asp:ListItem Value="10">10</asp:ListItem>
                        <asp:ListItem Value="11">11</asp:ListItem>
                        <asp:ListItem Value="12">12</asp:ListItem>
                        <asp:ListItem Value="13">13</asp:ListItem>
                        <asp:ListItem Value="14">14</asp:ListItem>
                        <asp:ListItem Value="15">15</asp:ListItem>
                        <asp:ListItem Value="16">16</asp:ListItem>
                        <asp:ListItem Value="17">17</asp:ListItem>
                        <asp:ListItem Value="18">18</asp:ListItem>
                        <asp:ListItem Value="19">19</asp:ListItem>
                        <asp:ListItem Value="20">20</asp:ListItem>
                        <asp:ListItem Value="21">21</asp:ListItem>
                        <asp:ListItem Value="22">22</asp:ListItem>
                        <asp:ListItem Value="23">23</asp:ListItem>
                        <asp:ListItem Value="24">24</asp:ListItem>
                        <asp:ListItem Value="25">25</asp:ListItem>
                        <asp:ListItem Value="26">26</asp:ListItem>
                        <asp:ListItem Value="27">27</asp:ListItem>
                        <asp:ListItem Value="28">28</asp:ListItem>
                        <asp:ListItem Value="29">29</asp:ListItem>
                        <asp:ListItem Value="30">30</asp:ListItem>
                        <asp:ListItem Value="31">31</asp:ListItem>
                    </asp:dropdownlist> 
                    <asp:dropdownlist id="drDojYear" class="controls" data-rel="chosen" style="font-SIZE: 10pt; COLOR: #000000; font-FAMILY: Arial, Tahoma, Verdana, Helvetica"
                        runat="server" Width="70px" DataTextField="age_desc" DataValueField="age_id" 
                        onselectedindexchanged="drDojYear_SelectedIndexChanged" Height="28px">
                        <asp:ListItem Value="2013">2013</asp:ListItem>
                        <asp:ListItem Value="2012">2012</asp:ListItem>
                        <asp:ListItem Value="2011">2011</asp:ListItem>
                        <asp:ListItem Value="2010">2010</asp:ListItem>
                        <asp:ListItem Value="2009">2009</asp:ListItem>
                        <asp:ListItem Value="2008">2008</asp:ListItem>
                        <asp:ListItem Value="2007">2007</asp:ListItem>
                        <asp:ListItem Value="2006">2006</asp:ListItem>
                        <asp:ListItem Value="2005">2005</asp:ListItem>
                        <asp:ListItem Value="2004">2004</asp:ListItem>
                        <asp:ListItem Value="2003">2003</asp:ListItem>
                        <asp:ListItem Value="2002">2002</asp:ListItem>
                        <asp:ListItem Value="2001">2001</asp:ListItem>
                        <asp:ListItem Value="2000">2000</asp:ListItem>
                        <asp:ListItem Value="1999">1999</asp:ListItem>
                        <asp:ListItem Value="1998">1998</asp:ListItem>
                        <asp:ListItem Value="1997">1997</asp:ListItem>
                        <asp:ListItem Value="1996">1996</asp:ListItem>
                        <asp:ListItem Value="1995">1995</asp:ListItem>
                        <asp:ListItem Value="1994">1994</asp:ListItem>
                        <asp:ListItem Value="1993">1993</asp:ListItem>
                        <asp:ListItem Value="1992">1992</asp:ListItem>
                        <asp:ListItem Value="1991">1991</asp:ListItem>
                        <asp:ListItem Value="1990">1990</asp:ListItem>
                        <asp:ListItem Value="1989">1989</asp:ListItem>
                        <asp:ListItem Value="1988">1988</asp:ListItem>
                        <asp:ListItem Value="1987">1987</asp:ListItem>
                        <asp:ListItem Value="1986">1986</asp:ListItem>
                        <asp:ListItem Value="1985">1985</asp:ListItem>
                        <asp:ListItem Value="1984">1984</asp:ListItem>
                        <asp:ListItem Value="1983">1983</asp:ListItem>
                        <asp:ListItem Value="1982">1982</asp:ListItem>
                        <asp:ListItem Value="1981">1981</asp:ListItem>
                        <asp:ListItem Value="1980">1980</asp:ListItem>
                        <asp:ListItem Value="1979">1979</asp:ListItem>
                        <asp:ListItem Value="1978">1978</asp:ListItem>
                        <asp:ListItem Value="1977">1977</asp:ListItem>
                        <asp:ListItem Value="1976">1976</asp:ListItem>
                        <asp:ListItem Value="1975">1975</asp:ListItem>
                        <asp:ListItem Value="1974">1974</asp:ListItem>
                        <asp:ListItem Value="1973">1973</asp:ListItem>
                        <asp:ListItem Value="1972">1972</asp:ListItem>
                        <asp:ListItem Value="1971">1971</asp:ListItem>
                        <asp:ListItem Value="1970">1970</asp:ListItem>
                    </asp:dropdownlist></td>
                <td  >
<b
<br />
                    <strong>Description</strong></td>
                <td style="HEIGHT: 31px"><asp:textbox id="txtClubDescription" runat="server" Height="25px" Width="208px" TextMode="MultiLine" data-rel="popover" data-content="Enter Description If Any.... "  title="ClubMembership"></asp:textbox></td>
            </tr>
            <tr>
                <td  ><strong>Emergency Contact No</strong></td>
                <td style="WIDTH: 248px; HEIGHT: 22px"><asp:textbox id="txtContactPerson" 
                        runat="server" Height="25px" Width="208px" data-rel="popover" 
                        data-content="Enter Name of the person who will contact in Emergency. "  
                        title="Emergency Contact" MaxLength="11"></asp:textbox>  
                    <asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtContactPerson"></asp:requiredfieldvalidator></td>
                <td  ><strong><strong><strong><strong>Awards </strong></strong>
                        </strong></strong>
                </td>
                <td style="HEIGHT: 22px">
                    <asp:radiobutton id="rb_awards_yes" runat="server" 
                        GroupName="A" Text="Yes" oncheckedchanged="rb_awards_yes_CheckedChanged" 
                        Width="70px" Checked="True" 
                        ></asp:radiobutton> 
                    <asp:radiobutton id="rb_awards_no" runat="server" GroupName="A" Text="No" 
                        oncheckedchanged="rb_awards_no_CheckedChanged" Width="70px" ></asp:radiobutton></td>
            </tr>
            <tr>
                <td  ><strong>Temporary Address</strong></td>
                <td style="WIDTH: 248px; HEIGHT: 26px"><asp:textbox id="txtTemporaryAddress" runat="server" Height="25px" Width="208px" TextMode="MultiLine" data-rel="popover" data-content="Enter Temporary Adderss of employee. "  title="Temp Address"></asp:textbox>  
                    <asp:requiredfieldvalidator id="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="txtTemporaryAddress"></asp:requiredfieldvalidator></td>
                <td  ><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong><strong>Description</strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></strong></td>
                <td style="HEIGHT: 26px"><asp:textbox id="txtAwardDescription" runat="server" Height="25px" Width="208px" TextMode="MultiLine" data-rel="popover" data-content="Enter Description If Any.... "  title="Awards"></asp:textbox></td>
            </tr>
            <tr>
                <td  ><strong>Permanent Address</strong></td>
                <td style="WIDTH: 248px; HEIGHT: 30px"><asp:textbox id="txtPermanentAddress" runat="server" Height="25px" Width="208px" data-rel="popover" data-content="Enter permanent Adderss of employee. "  title="Address"></asp:textbox>  
                    <asp:requiredfieldvalidator id="RequiredFieldValidator3" runat="server" ErrorMessage="*" ControlToValidate="txtPermanentAddress"></asp:requiredfieldvalidator></td>
                <td  ><strong><strong>Medical History</strong> </strong>
                </td>
                <td style="HEIGHT: 30px">
                    <asp:radiobutton id="rb_Medical_yes" runat="server" 
                        GroupName="M" Text="Yes" oncheckedchanged="rb_Medical_yes_CheckedChanged" 
                        Width="70px" Checked="True" 
                        ></asp:radiobutton> 
                    <asp:radiobutton id="rb_Medical_no" runat="server" GroupName="M" Text="No" Width="70px"></asp:radiobutton></td>
            </tr>
            <tr>
                <td><strong>Mobile No</strong></td>
                <td style="WIDTH: 248px; HEIGHT: 43px"><asp:textbox id="txtMobile" runat="server" 
                      onkeyup="onlyNumber(this);"  Height="25px" Width="208px" MaxLength="11" data-rel="popover" data-content="Enter Mobile No Like 03445551761. "  title="Mobile"></asp:textbox>
                     </td>
                <td  ><strong><strong><strong><strong><strong><strong><strong><strong><strong>Description</strong></strong></strong></strong></strong></strong></strong></strong></strong></td>
                <td style="HEIGHT: 43px"><asp:textbox id="txtMedicalDescription" runat="server" Height="25px" Width="208px" TextMode="MultiLine" data-rel="popover" data-content="Enter Description If Any.... "  title="Medical History"></asp:textbox></td>
            </tr>
            <tr>
                <td style="WIDTH: 155px; HEIGHT: 43px"></td>
                <td style="WIDTH: 248px; HEIGHT: 43px">
                     </td>
                <td style="WIDTH: 153px; HEIGHT: 43px">    <asp:button id="Submit1" runat="server" Width="93px" 
                        Text="Submit" onclick="Submit_Click" Height="25px" class="btn btn-primary"></asp:button></td>
                <td style="HEIGHT: 43px">     
                    <asp:button id="Cancel" runat="server" Text="Cancel" onclick="Cancel_Click" 
                        Height="25px" Width="95px" class="btn btn-primary"></asp:button>
                    <asp:label id="Label1" runat="server" Visible="False">Label</asp:label></td>
            </tr>
        </table>


                    <%--End Content--%>

                </div>                   
              </div>
            </div><!--/span-->
        </div><!--/row-->
Employee Registration form
Employee Registration form

Complete Backend Coding of Employee Registration page in asp.net and c#

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

public partial class admin_EmployeeeRegistration : System.Web.UI.Page
{
SqlConnection con = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings[“con_str”].ConnectionString);

protected void Page_Load(object sender, System.EventArgs e)
{

}
protected void Submit_Click(object sender, System.EventArgs e)
{
string optLoan, optDocument, optAward, optExtra, optMedical, optGender;
DateTime DojDate, DobDate;
//Date of Birth and Date of Join
DobDate = Convert.ToDateTime(drDobMonth.SelectedItem + “/” + drDobDate.SelectedItem + “/” + drDobYear.SelectedItem);
DojDate = Convert.ToDateTime(drDojMonth.SelectedItem + “/” + drDojDate.SelectedItem + “/” + drDojYear.SelectedItem);

//Gender
if (rb_Gender_Male.Checked == true)
optGender = “M”;
else
optGender = “F”;

//Loan
if (rb_Loan_Yes.Checked == true)
optLoan = “Y”;
else
optLoan = “N”;

//Document
if (rb_Document_Yes.Checked == true)
optDocument = “Y”;
else
optDocument = “N”;

//ExtraCurriculam
if (rb_extra_yes.Checked == true)
optExtra = “Y”;
else
optExtra = “N”;

//ClubMembership
// if (rb_club_yes.Checked==true)
// optClub=”Y”;
// else
// optClub=”N”;

//Awards
if (rb_awards_yes.Checked == true)
optAward = “Y”;
else
optAward = “N”;

//Medical
if (rb_Medical_yes.Checked == true)
optMedical = “Y”;
else
optMedical = “N”;

if (drDesignation.SelectedItem.Text == “Select” || drQualification.SelectedItem.Text == “Select” || drExperience.SelectedItem.Text == “Select”)
{
Label1.Text = “Select The Missed Options”;
}
else
{

con.Open();
SqlCommand cmd = new SqlCommand();

cmd.CommandText = "insert into Employee values('" + txtEmployeeId.Text + "','" + optGender + "','" + drDesignation.SelectedItem.Text + "','" + drQualification.SelectedItem.Text + "','" + drExperience.SelectedItem.Text + "','" + DobDate + "','" + DojDate + "','" + txtContactPerson.Text + "','" + txtTemporaryAddress.Text + "','" + txtPermanentAddress.Text + "'," + txtMobile.Text + ",'" + optLoan + "','" + txtLoanDescription.Text + "','" + optDocument + "','" + txtDoumentDescription.Text + "','" + optExtra + "','" + txtExtraDescription.Text + "','" + optAward + "','" + txtAwardDescription.Text + "','" + optMedical + "','" + txtMedicalDescription.Text + "','" + txtEmployeeName.Text + "')";
cmd.Connection = con;
cmd.ExecuteNonQuery();
Label2.Text = "<h3>Registered Sucessfully...</h3>";
Label2.Visible = true;

txtEmployeeId.Text = "";
txtEmployeeName.Text = "";
txtContactPerson.Text =" ";
txtTemporaryAddress.Text = "";
txtPermanentAddress.Text="";
txtMobile.Text = "";

con.Close();

}

}

protected void Cancel_Click(object sender, System.EventArgs e)
{
Response.Redirect(“EmployeeeRegistration.aspx”);
}

protected void drQualification_SelectedIndexChanged(object sender, System.EventArgs e)
{

}

protected void rb_Loan_Yes_CheckedChanged(object sender, System.EventArgs e)
{
//rb_Loan_No.Enabled = true;
//rb_Loan_No.Checked = false;

}

protected void rb_Document_Yes_CheckedChanged(object sender, System.EventArgs e)
{
// rb_Document_No.Enabled = true;
//rb_Document_No.Checked = false;

}

protected void rb_extra_yes_CheckedChanged(object sender, System.EventArgs e)
{
//rb_extra_No.Enabled = true;
//rb_extra_No.Checked = false;

}

protected void rb_club_yes_CheckedChanged(object sender, System.EventArgs e)
{
//rb_club_No.Enabled = true;
//rb_club_No.Checked = false;
}

protected void rb_awards_yes_CheckedChanged(object sender, System.EventArgs e)
{
//rb_awards_no.Enabled = true;
//rb_awards_no.Checked = false;
}

protected void rb_Medical_yes_CheckedChanged(object sender, System.EventArgs e)
{
//rb_Medical_no.Enabled = true;
//rb_Medical_no.Checked = false;
}

protected void rb_Loan_No_CheckedChanged(object sender, System.EventArgs e)
{
//rb_Loan_Yes.Enabled = true;
//rb_Loan_Yes.Checked = false;
}

protected void rb_Document_No_CheckedChanged(object sender, System.EventArgs e)
{
//rb_Document_Yes.Enabled = true;
// rb_Document_Yes.Checked = false;
}

protected void rb_extra_No_CheckedChanged(object sender, System.EventArgs e)
{
//rb_extra_yes.Enabled = true;
// rb_extra_yes.Checked = false;
}

protected void rb_club_No_CheckedChanged(object sender, System.EventArgs e)
{

//rb_club_yes.Enabled = true;

// rb_club_yes.Checked = false;
}

protected void rb_awards_no_CheckedChanged(object sender, System.EventArgs e)
{
//rb_awards_yes.Enabled = true;
//rb_awards_yes.Checked = false;
}

private void rb_Medical_no_CheckedChanged(object sender, System.EventArgs e)
{
//rb_Medical_yes.Enabled = true;
//rb_Medical_yes.Checked = false;
}

private void RadioButton1_CheckedChanged(object sender, System.EventArgs e)
{
//rb_Loan_No.Enabled = true;
//rb_Loan_No.Checked = false;

}

protected void rb_Gender_Male_CheckedChanged(object sender, System.EventArgs e)
{
//rb_Gender_Male.Enabled = true;
//rb_Gender_Female.Checked = false;

}

protected void drDojDate_SelectedIndexChanged(object sender, System.EventArgs e)
{

}

protected void drDojYear_SelectedIndexChanged(object sender, System.EventArgs e)
{

}

}

Leave a Reply

Your email address will not be published. Required fields are marked *