create a Recruitment Page or job Post page in asp.net

create a Recruitment Page or job Post page in asp.net. How to create job announcement page in asp.net | Complete front end designing and backend coding.

Complied designing and backend coding of file for any job announcement and Recruitment page for ant asp.net project page creation using visual studio and C# language.

    <%@ page Title=”” Language=”C#” MasterpageFile=”~/app_theme/MasterPageAdmin.master” AutoEventWireup=”true” CodeFile=”Recruitment.aspx.cs” Inherits=”admin_Recruitment” %>

    <div class="row-fluid sortable">
                <div class="box span12">
                    <div class="box-header well" data-original-title>
                        <h2><i class="icon-th"></i> Job Announcement</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 align="center" style="width: 665px">
    
                <tr>
                    <td style=" width: 253px; height: 48px; text-align: right;">
                        <asp:Label id="Label8" runat="server" Visible="False" class="btn btn-primary"  >Label</asp:Label> </td>
                    <td style="height: 48px; text-align: right;"><asp:HyperLink id="HyperLink1" runat="server" Navigateurl="AdminOptions.aspx" 
                            ToolTip="Admin Options page" >Back</asp:HyperLink></td>
                </tr>
                <tr>
                    <td  align="right" style=" width: 253px;">
                        <asp:label id="Label1" runat="server" Width="120px" Height="19px">Job Date</asp:label>  
                        : </td>
                    <td >  <asp:textbox id="TextBox1" runat="server" Width="200px" Height="25px" ></asp:textbox></td>
                </tr>
                <tr>
                    <td  align="right" style=" width: 253px;">
                        <asp:label id="Label2" runat="server" Width="127px" Height="19px" >Job Title</asp:label>  
                        : </td>
                    <td >  <asp:textbox id="TextBox2" runat="server" onkeyup="onlyText(this);" 
                            Width="200px" Height="25px" data-rel="popover" data-content="Enter title of the Job."  title="Job Title" ></asp:textbox> 
                        <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="TextBox2"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td align="right" style=" width: 253px;">
                        <asp:label id="Label3" runat="server" Width="127px" Height="19px">Description</asp:label>  
                        : </td>
                    <td >  
                        <asp:dropdownlist id="jobpostingdesc" class="controls" data-rel="chosen" runat="server" Height="25px" 
                            Width="205px">
                            <asp:ListItem Value="0 to 1 year">0 to 1 year</asp:ListItem>
                            <asp:ListItem Value="1 to 2 years">1 to 2 years</asp:ListItem>
                            <asp:ListItem Value="2 to 3 years">2 to 3 years</asp:ListItem>
                            <asp:ListItem Value="3 to 4 years">3 to 4 years</asp:ListItem>
                            <asp:ListItem Value="4 to 5 years">4 to 5 years</asp:ListItem>
                            <asp:ListItem Value="5 to 6 years">5 to 6 years</asp:ListItem>
                            <asp:ListItem Value="6 to 7 years">6 to 7 years</asp:ListItem>
                            <asp:ListItem Value="7 to 8 years">7 to 8 years</asp:ListItem>
                            <asp:ListItem Value="8 to 9 years">8 to 9 years</asp:ListItem>
                            <asp:ListItem Value="9 to 10 years">9 to 10 years</asp:ListItem>
                            <asp:ListItem Value="10 to 11 years">10 to 11 years</asp:ListItem>
                            <asp:ListItem Value="11 to 12 years">11 to 12 years</asp:ListItem>
                            <asp:ListItem Value="12 to 13 years">12 to 13 years</asp:ListItem>
                            <asp:ListItem Value="13 to 14 years">13 to 14 years</asp:ListItem>
                            <asp:ListItem Value="14 to 15 years">14 to 15 years</asp:ListItem>
                        </asp:dropdownlist></td>
                </tr>
                <tr>
                    <td align="right" style=" width: 253px;">
                        <asp:label id="Label4" runat="server" Width="127px" Height="19px">Vacancies</asp:label>  
                        : </td>
                    <td >  <asp:textbox id="TextBox3" runat="server" Width="200px" Height="25px" data-rel="popover" data-content="Enter number of vacancies Like 1,2,3 or More."  title="Vacancies"></asp:textbox> 
                        <asp:RequiredFieldValidator id="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="TextBox3"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td align="right" style=" width: 253px;">
                        <asp:label id="Label5" runat="server" style="WIDTH: 127px; HEIGHT: 19px">Last Date For Apply</asp:label>  
                        : </td>
                    <td >
                        <p>
                             
                            <asp:dropdownlist id="L_m" class="controls" data-rel="chosen" style="font-SIZE: 10pt; COLOR: #000000; font-FAMILY: Arial, Tahoma, Verdana, Helvetica"
                                runat="server" DataTextField="age_desc" DataValueField="age_id" Width="63px">
                                <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="L_d" class="controls" data-rel="chosen" style="font-SIZE: 10pt; COLOR: #000000; font-FAMILY: Arial, Tahoma, Verdana, Helvetica"
                                runat="server" DataTextField="age_desc" DataValueField="age_id" Width="63px">
                                <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="L_y" class="controls" data-rel="chosen" style="font-SIZE: 10pt; COLOR: #000000; font-FAMILY: Arial, Tahoma, Verdana, Helvetica"
                                runat="server" DataTextField="age_desc" DataValueField="age_id" Width="75px" AutopostBack="True" 
                                onselectedindexchanged="L_y_SelectedIndexChanged">
    
                            <asp:ListItem Value="2014">2014</asp:ListItem>
                            <asp:ListItem Value="2013" Selected="True">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:dropdownlist>
                        </p>
                    </td>
                </tr>
                <tr>
                    <td align="right" style=" width: 253px;">
                        <asp:label id="Label6" runat="server" Width="127px" Height="19px">Location</asp:label>  
                        : </td>
                    <td >  <asp:textbox id="TextBox4" runat="server" Width="200px" Height="25px" data-rel="popover" data-content="Enter Location for job Like Multan , Lahore , Karachi... etc."  title="Job Location"></asp:textbox> 
                        <asp:RequiredFieldValidator id="RequiredFieldValidator3" runat="server" ErrorMessage="*" ControlToValidate="TextBox4"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td align="right" style="width: 253px">
                        <asp:label id="Label7" runat="server" Width="127px" Height="19px">Domain</asp:label>  
                        : </td>
                    <td >  
                        <asp:dropdownlist id="jobpostingdomain" class="controls" data-rel="chosen" 
                            runat="server" Height="25px" 
                            Width="210px">
                            <asp:ListItem Value="DotNet">DotNet</asp:ListItem>
                            <asp:ListItem Value="J2ee">J2ee</asp:ListItem>
                            <asp:ListItem Value="Java">Java</asp:ListItem>
                            <asp:ListItem Value="Empedded">Empedded</asp:ListItem>
                        </asp:dropdownlist></td>
                </tr>
                <tr>
                    <td align="right" style="width: 253px">
                         </td>
                    <td > </td>
                </tr>
                <tr>
                    <td align="right" style="width: 253px">
                         </td>
                    <td > </td>
                </tr>
                <tr>
                    <td style="width: 253px">
                         </td>
                    <td>  <asp:button id="Button1" class="btn btn-primary" runat="server" Text="Submit" 
                            onclick="Button1_Click" Height="25px" Width="100px"></asp:button>
                         <asp:Button id="Button2" runat="server" class="btn btn-primary" Text="Cancel" 
                            onclick="Button2_Click" Height="25px" Width="100px"></asp:Button>
                        </td>
                </tr>
            </table>
    
    
                        <%--End Content--%>
    
                    </div>                   
                  </div>
                </div><!--/span-->
            </div><!--/row-->
    create a Recruitment Page or job Post page in asp.net

    Complete Coding of recruitment or job announcement page

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

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

    protected void Page_Load(object sender, System.EventArgs e)
    {
        // Put user code to initialize the page here
        DateTime rightNow = DateTime.Now;
        TextBox1.Text = String.Format("{0:d}", rightNow);
    }
    protected void Button1_Click(object sender, System.EventArgs e)
    {
    
        string str;
        DateTime g;
        string domain;
        domain = jobpostingdomain.SelectedItem.Text;
        g = Convert.ToDateTime(L_m.SelectedItem + "/" + L_d.SelectedItem + "/" + L_y.SelectedItem);
        con.Open();
        str = "insert into jobposting values('" + TextBox1.Text + "','" + TextBox2.Text + "','" + jobpostingdesc.SelectedItem.Text + "','" + TextBox3.Text + "','" + g + "','" + TextBox4.Text + "','" + domain + "')";
        SqlCommand cmd = new SqlCommand(str, con);
        cmd.ExecuteNonQuery();
        Label8.Text = "<h3>Job Posted Successfully...!</h3>";
        Label8.Visible = true;
        TextBox2.Text = "";
        TextBox3.Text = "";
        TextBox4.Text = "";
        con.Close();
    
    
    }
    
    protected void Button2_Click(object sender, System.EventArgs e)
    {
    
    }
    
    
    protected void L_y_SelectedIndexChanged(object sender, EventArgs e)
    {
    
    }

    }

    Leave a Reply

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