Admin panel pages differs from the normal web page.
Admin panels are for managing the entire site whcih consist of following modules
1. Users
2. Contents
3. Permission of various pages.
4. Transactions (If website is performing any transaction)
5. Sending Newsletter ( If website has the provision for users to subscribe news letter).
So basically admin panels are for managing the website. So build/arrange your modules based on your actual website/webapplication.
This is the admin panel of Limited Job website. ( Asp.net C# & SQL2008)
LIST OF PAGES :
AdminHome.aspx
JobSeekerAppliedJobs.aspx
JobSeekerAppliedJobsDetails.aspx
ListOfPostedJobs.aspx
ListOfRegCandidates.aspx
ModifyRegUsers.aspx
PostedJobsDetails.aspx
// Admin class file added below.
ADMIN HOME :
Lis tOf Registered Candidates :
here admin can view the all registered users and admin can activate user or admin can deactivate or delete user.

Admin class file:
Admin panels are for managing the entire site whcih consist of following modules
1. Users
2. Contents
3. Permission of various pages.
4. Transactions (If website is performing any transaction)
5. Sending Newsletter ( If website has the provision for users to subscribe news letter).
So basically admin panels are for managing the website. So build/arrange your modules based on your actual website/webapplication.
This is the admin panel of Limited Job website. ( Asp.net C# & SQL2008)
LIST OF PAGES :
AdminHome.aspx
JobSeekerAppliedJobs.aspx
JobSeekerAppliedJobsDetails.aspx
ListOfPostedJobs.aspx
ListOfRegCandidates.aspx
ModifyRegUsers.aspx
PostedJobsDetails.aspx
// Admin class file added below.
ADMIN HOME :
AdminDal admdal = new AdminDal();
protected void Page_Load(object
sender, EventArgs e)
{
lbl_message.Text = "";
}
protected void btn_login_Click(object
sender, ImageClickEventArgs e)
{
try
{
Session["Admin"]
= txt_user.Text;
if
(admdal.AdmLogin(txt_user.Text, txt_pwd.Text) == true)
{
Response.Redirect("AdmHome.aspx");
}
else
{
lbl_message.Text = "Invalid UserName/Password";
}
}
catch
(Exception)
{
throw;
}
}
=================================================================================
Lis tOf Registered Candidates :
here admin can view the all registered users and admin can activate user or admin can deactivate or delete user.
AdminDal AdmDal = new AdminDal();
protected void Page_Load(object
sender, EventArgs e)
{
if
(Session["Admin"].ToString() == "")
{
Response.Redirect("AdminMain.aspx");
}
}
protected void btnView_Click(object
sender, EventArgs e)
{
try
{
Grd_AdminViewRegUsers.DataSource =
AdmDal.AdminShowAllRegisterByDate(Convert.ToDateTime(txt_Fmdate.Text),
Convert.ToDateTime(txt_Todate.Text));
Grd_AdminViewRegUsers.DataBind();
}
catch (Exception)
{
if
(txt_Fmdate.Text == "" &&
txt_Todate.Text == "")
{
Page.RegisterStartupScript("err1", "<script
language='javascript'>alert('Please select dates');</script>");
}
}
}
protected void Grd_AdminViewRegUsers_RowCommand(object sender, GridViewCommandEventArgs
e)
{
if
(e.CommandName == "Delete")
{
AdmDal.JobSeekerId =
e.CommandArgument.ToString();
AdmDal.DeleteRegisterUserInfo();
Grd_AdminViewRegUsers.DataSource =
AdmDal.AdminShowAllRegisterByDate(Convert.ToDateTime(txt_Fmdate.Text),
Convert.ToDateTime(txt_Todate.Text));
Grd_AdminViewRegUsers.DataBind();
}
if
(e.CommandName == "Update")
{
Session["UserEmail"]
= e.CommandArgument.ToString();
Response.Redirect("ModifyRegUsers.aspx");
}
}
protected void Grd_AdminViewRegUsers_PageIndexChanging(object sender, GridViewPageEventArgs
e)
{
Grd_AdminViewRegUsers.PageIndex =
e.NewPageIndex;
try
{
Grd_AdminViewRegUsers.DataSource =
AdmDal.AdminShowAllRegisterByDate(Convert.ToDateTime(txt_Fmdate.Text),
Convert.ToDateTime(txt_Todate.Text));
Grd_AdminViewRegUsers.DataBind();
}
catch (Exception)
{
throw;
}
}
================================================================================
JobSeeker Applied Jobs Details
AdminDal AdmDal = new AdminDal();
protected void Page_Load(object
sender, EventArgs e)
{
if
(Session["Admin"].ToString() == "")
{
Response.Redirect("AdminMain.aspx");
}
BindGridview();
}
private void BindGridview()
{
Grd_AdmViewAppliedJobBiddrs.DataSource
= AdmDal.AdminJobSeekerAppliedJobDetails();
Grd_AdmViewAppliedJobBiddrs.DataBind();
}
protected void Grd_AdmViewAppliedJobBiddrs_PageIndexChanging(object sender, GridViewPageEventArgs
e)
{
try
{
Grd_AdmViewAppliedJobBiddrs.PageIndex = e.NewPageIndex;
BindGridview();
}
catch (Exception ex)
{
lblMsg.Text = ex.Message;
}
}
protected void
Grd_AdmViewAppliedJobBiddrs_SelectedIndexChanging(object
sender, GridViewSelectEventArgs e)
{
try
{
Grd_AdmViewAppliedJobBiddrs.SelectedIndex = e.NewSelectedIndex;
foreach
(GridViewRow gr in
Grd_AdmViewAppliedJobBiddrs.Rows)
{
if
(gr.RowIndex == Grd_AdmViewAppliedJobBiddrs.SelectedIndex)
{
Literal
l;
l = (Literal)gr.FindControl("lblRegEmail");
Session["JobSeekerId"] = l.Text;
Response.Redirect("JobSeekerAppliedJobsDetails.aspx");
}
}
}
catch (Exception ex)
{
lblMsg.Text = ex.Message;
}
}
=================================================================================
List of Posted Jobs: 
AdminDal AdmDal = new AdminDal();
protected void Page_Load(object
sender, EventArgs e)
{
if
(Session["Admin"].ToString() == "")
{
Response.Redirect("AdminMain.aspx");
}
}
protected void btnView_Click(object
sender, EventArgs e)
{
try
{
Grd_AdminViewAllJobs.DataSource =
AdmDal.AdminShowAllJobsByDate(Convert.ToDateTime(txt_Fmdate.Text),
Convert.ToDateTime(txt_Todate.Text));
Grd_AdminViewAllJobs.DataBind();
}
catch (Exception)
{
if
(txt_Fmdate.Text == "" &&
txt_Todate.Text == "")
{
Page.RegisterStartupScript("err1", "<script
language='javascript'>alert('Please select dates');</script>");
}
}
}
protected void Grd_AdminViewAllJobs_PageIndexChanging(object sender, GridViewPageEventArgs
e)
{
Grd_AdminViewAllJobs.PageIndex =
e.NewPageIndex;
try
{
Grd_AdminViewAllJobs.DataSource =
AdmDal.AdminShowAllJobsByDate(Convert.ToDateTime(txt_Fmdate.Text),
Convert.ToDateTime(txt_Todate.Text));
Grd_AdminViewAllJobs.DataBind();
}
catch (Exception)
{
throw;
}
}
protected void Grd_AdminViewAllJobs_RowCommand(object sender, GridViewCommandEventArgs
e)
{
if
(e.CommandName == "Update")
{
Session["JobId"]
= e.CommandArgument.ToString();
Response.Redirect("PostedJobsDetails.aspx");
}
}
protected void Grd_AdminViewAllJobs_RowDeleting(object sender, GridViewDeleteEventArgs
e)
{
Button
btn;
foreach
(GridViewRow gr in
Grd_AdminViewAllJobs.Rows)
{
btn = (Button)gr.FindControl("btndelete");
AdmDal.JobSeekerId = btn.CommandArgument.ToString();
}
AdmDal.DeletePostedJob();
Grd_AdminViewAllJobs.DataSource =
AdmDal.AdminShowAllJobsByDate(Convert.ToDateTime(txt_Fmdate.Text),
Convert.ToDateTime(txt_Todate.Text));
Grd_AdminViewAllJobs.DataBind();
}
=================================================================================Modify User :
AdminDal AdmDal = new AdminDal();
protected void Page_Load(object
sender, EventArgs e)
{
if
(Session["Admin"].ToString() == "")
{
Response.Redirect("AdminMain.aspx");
}
if
(!IsPostBack)
{
BindData();
}
}
private void BindData()
{
AdmDal.JobSeekerId = Session["UserEmail"].ToString();
DataSet
ds = new DataSet();
ds = AdmDal.GetAdminRegisteredUser();
if
(ds.Tables[0].Rows.Count > 0)
{
txtDName.Text =
ds.Tables[0].Rows[0]["JR_DisplayName"].ToString();
txteMail.Text =
ds.Tables[0].Rows[0]["JR_Email"].ToString();
txtFname.Text =
ds.Tables[0].Rows[0]["JR_FirstName"].ToString();
txtLname.Text =
ds.Tables[0].Rows[0]["JR_LastName"].ToString();
txtAddress.Text =
ds.Tables[0].Rows[0]["JR_Address"].ToString();
txtCity.Text =
ds.Tables[0].Rows[0]["JR_City"].ToString();
txtState.Text =
ds.Tables[0].Rows[0]["JR_State"].ToString();
txtCountry.Text =
ds.Tables[0].Rows[0]["JR_Country"].ToString();
string
JType = ds.Tables[0].Rows[0]["JR_Type"].ToString();
if
(JType == "Poster")
{
RadioButtonList1.Items.FindByValue("Poster").Selected
= true;
}
else
{
RadioButtonList1.Items.FindByValue("Seeker").Selected
= true;
}
}
}
protected void btnBack_Click(object
sender, EventArgs e)
{
Response.Redirect("../Admin/ListOfRegCandidates.aspx");
}
===============================================================Admin class file:
public class AdminDal
{
public static string
username;
public static string
password;
private string _JobSeekerId;
public string JobSeekerId
{
get { return _JobSeekerId; }
set {
_JobSeekerId = value; }
}
public AdminDal()
{
//
// TODO: Add constructor logic
here
//
}
public DataSet AdminShowAllRegisterByDate(DateTime FromDt, DateTime
ToDt)
{
if
(con.State == ConnectionState.Open)
{
con.Close();
}
con.Open();
cmd1 = new
SqlCommand("Get_Admin_ViewRegUsers",
con);
cmd1.CommandType = CommandType.StoredProcedure;
cmd1.Parameters.AddWithValue("@FromDate", FromDt);
cmd1.Parameters.AddWithValue("@ToDate", ToDt);
SqlDataAdapter
da = new SqlDataAdapter(cmd1);
DataSet
ds = new DataSet();
da.Fill(ds);
return
ds;
}
public void DeleteRegisterUserInfo()
{
if
(con.State == ConnectionState.Open)
{
con.Close();
}
con.Open();
cmd1 = new
SqlCommand("Delete_Admin_RegisterUserInfo",
con);
cmd1.CommandType = CommandType.StoredProcedure;
cmd1.Parameters.AddWithValue("@Email", this._JobSeekerId);
cmd1.ExecuteNonQuery();
con.Close();
}
public DataSet GetAdminRegisteredUser()
{
if
(con.State == ConnectionState.Open)
{
con.Close();
}
con.Open();
cmd1 = new
SqlCommand("Get_Admin_RegisteredUser",
con);
cmd1.CommandType = CommandType.StoredProcedure;
cmd1.Parameters.AddWithValue("@P_EmailId", this._JobSeekerId);
SqlDataAdapter
da = new SqlDataAdapter(cmd1);
DataSet
ds = new DataSet();
da.Fill(ds);
return
ds;
}
public DataSet AdminJobSeekerAppliedJobDetails()
{
if
(con.State == ConnectionState.Open)
{
con.Close();
}
con.Open();
cmd1 = new
SqlCommand("Get_Admin_BiddedJobDetails",
con);
cmd1.CommandType = CommandType.StoredProcedure;
SqlDataAdapter
da = new SqlDataAdapter(cmd1);
DataSet
ds = new DataSet();
da.Fill(ds);
return
ds;
}
public DataSet ShowAppliedJobDetailOfJobsseker()
{
if
(con.State == ConnectionState.Open)
{
con.Close();
}
con.Open();
cmd1 = new
SqlCommand("Get_Admin_ShowAppliedJobDetailOfJobsseker",
con);
cmd1.CommandType = CommandType.StoredProcedure;
cmd1.Parameters.AddWithValue("@JobSeekerId", this._JobSeekerId);
SqlDataAdapter
da = new SqlDataAdapter(cmd1);
DataSet
ds = new DataSet();
da.Fill(ds);
return
ds;
}
public DataSet AdminShowAllJobsByDate(DateTime FromDt, DateTime
ToDt)
{
if
(con.State == ConnectionState.Open)
{
con.Close();
}
con.Open();
cmd1 = new
SqlCommand("Get_Admin_ViewAllJobs",
con);
cmd1.CommandType = CommandType.StoredProcedure;
cmd1.Parameters.AddWithValue("@FromDate", FromDt);
cmd1.Parameters.AddWithValue("@ToDate", ToDt);
SqlDataAdapter
da = new SqlDataAdapter(cmd1);
DataSet
ds = new DataSet();
da.Fill(ds);
return
ds;
}
public void DeletePostedJob()
{
if
(con.State == ConnectionState.Open)
{
con.Close();
}
con.Open();
cmd1 = new
SqlCommand("Delete_Admin_PostedJob",
con);
cmd1.CommandType = CommandType.StoredProcedure;
cmd1.Parameters.AddWithValue("@JobId", this._JobSeekerId);
cmd1.ExecuteNonQuery();
con.Close();
}
public DataSet GetAdminSelectedJob()
{
if
(con.State == ConnectionState.Open)
{
con.Close();
}
con.Open();
cmd1 = new
SqlCommand("Get_Admin_SelectedJobDetais",
con);
cmd1.CommandType = CommandType.StoredProcedure;
cmd1.Parameters.AddWithValue("@P_JobId", this._JobSeekerId);
SqlDataAdapter
da = new SqlDataAdapter(cmd1);
DataSet
ds = new DataSet();
da.Fill(ds);
return
ds;
}
public DataSet ShowBiddersAppliedToJob()
{
if
(con.State == ConnectionState.Open)
{
con.Close();
}
con.Open();
cmd1 = new
SqlCommand("Get_Admin_BiddersAppliedToJob",
con);
cmd1.CommandType = CommandType.StoredProcedure;
cmd1.Parameters.AddWithValue("@P_JobId", this._JobSeekerId);
SqlDataAdapter
da = new SqlDataAdapter(cmd1);
DataSet
ds = new DataSet();
da.Fill(ds);
return
ds;
}
public bool AdmLogin(string
Email, string Password)
{
int
count;
if
(con.State == ConnectionState.Open)
{
con.Close();
}
con.Open();
SqlCommand
cmdlogin1 = new SqlCommand("Get_Adminlogin", con);
cmdlogin1.CommandType = CommandType.StoredProcedure;
cmdlogin1.Parameters.AddWithValue("@P_userid", Email);
cmdlogin1.Parameters.AddWithValue("@P_password", Password);
count = Convert.ToInt32(cmdlogin1.ExecuteScalar());
if
(count > 0)
return
true;
else
return
false;
}
public int JobEmailCount(string
Email)
{
if
(con.State == ConnectionState.Open)
{
con.Close();
}
con.Open();
cmd = new
SqlCommand("Job_EmailCount",
con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@EmailAddress", SqlDbType.NVarChar).Value = Email;
int count = Convert.ToInt32(cmd.ExecuteScalar());
con.Close();
return
count;
}
public void UpdateUser(string
DName,string eMail,string
Fname,string Lname,string
Address,string City,string
State,string Country)
{
if
(con.State == ConnectionState.Open)
{
con.Close();
}
con.Open();
cmd = new
SqlCommand("Update_Job_USER_Information",
con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("@P_DisplayName", DName);
cmd.Parameters.AddWithValue("@P_Email", eMail);
cmd.Parameters.AddWithValue("@P_FirstName", Fname);
cmd.Parameters.AddWithValue("@P_LastName", Lname);
cmd.Parameters.AddWithValue("@P_Address", Address);
cmd.Parameters.AddWithValue("@P_City", City);
cmd.Parameters.AddWithValue("@P_State", State);
cmd.Parameters.AddWithValue("@P_Country", Country);
cmd.ExecuteNonQuery();
con.Close();
}
}
===============================================================================



i need this source code zip file plz send me at fakhar.csv@gmail.com
ReplyDeletehi I want source code as zip folder s.pahmedkhan@gmail.com
ReplyDeletehii
ReplyDeletehi...i need the source code......:)
ReplyDeleteutopik_91@mail.ru
ReplyDeletei want this admin source please send it to me this email address niki9091@hotmail.com
ReplyDeletesorce code plz at Pawanrana09@gmail.com
ReplyDeleteNice code....i want this code pls send me it at shely.dhami@gmail.com
ReplyDeleteplease mail me this code at bhaveshvyas23@gmail.com
ReplyDeleteNice Code Sir... Please send the Source code to my mail id: sai.rapola@gmail.com
ReplyDeleteplz send me code kashifshahzad917@gmail.com
ReplyDeleteplease send me this source code at miky.smith7@gmail.com
ReplyDeleteI need this code please send me it at juthi.cse090203@gmail.com
ReplyDeletei need this source code zip file plz send me at msohailpak1@gmail.com
ReplyDeletehi .. nice code ..
ReplyDeletei want this code in zip format . . please send me it at sumitpitroda@gmail.com
Please i want the source code zip sent to my email thanks obubus@gmail.com
ReplyDeletehi Nice code plz send me this code at esufi88@gmail.com
ReplyDeletei need this source code zip file plz send me at boramay56@gmail.com
ReplyDeletei need this source code zip file plz send me at boramay56@gmail.com
ReplyDeletei need this source code zip file plz send me at boramay56@gmail.com
ReplyDeleteSir I Need This Source Code Zip Fiel Please send me at aurangzeb035.ciit@gmail.com
ReplyDeletePlease i want the source code zip sent to my email thanks imshubhampathak@gmail.com
ReplyDeleteSource code at japangor@gmail.com
ReplyDeletePlease i want the source code zip sent to my email thanks huseyinkeser@hotmail.com
ReplyDeletePlease i want the source code zip sent to my email thanks huseyinkeser@hotmail.com
ReplyDeleteifaazkhan@gmail.com please send me the source file.
ReplyDeletei need this source code zip file plz send me at ifaazkhan@gmail.com
ReplyDeletei need this source code zip file plz send me at ifaazkhan@gmail.com
ReplyDeletei need this source code zip file plz send me at amichaudhari007@gmail.com
ReplyDeletei need this source code zip file plz send me at albalushian@yahoo.com
ReplyDeletePLease send the whole source code to bilalhsa100@gmail.com
ReplyDeleteI need this source code zip file plz send me at kivancalieren@gmail.com
ReplyDeletesuperrr plz send me the source code at chellamuthumca@gmail.com
ReplyDeletei need source code please send me on this account uqi_niceman@yahoo.com
ReplyDeletei need this code.... giribabuzee@gmail.com
ReplyDeletei need this code.... giribabuzee@gmail.com
ReplyDeletei need this code.... giribabuzee@gmail.com
ReplyDeletei need this code.... giribabuzee@gmail.com
ReplyDeletei need this source code zip file plz send me at silalaboriano@gmail.com
ReplyDeletei need this source code zip file plz send me at mary_pisciss@hotmail.com
ReplyDeleteeng.abdihakim@gmail.com
ReplyDeletei need this source code zip file plz send me at sazzadulhaque2012@gmail.com
ReplyDeleteCrisp code. please mail me this code at swaminath.perumal@gmail.com
ReplyDeleteplz mail me the source code suresh98.cse@gmail.com
ReplyDeletei need this source code
ReplyDeletei want this source code in zip file pls send me suraj.possible@yahoo.com
ReplyDeletewow great tutorial.please send me source code
ReplyDeletemuradbd.info@gmail.com
that is exactly what i was looking for. is it possible to get a source code to dovpav@yahoo.ie, thank you
ReplyDeletei want this source code in zip file pls send me sachinbotkule55@gmail.com
ReplyDeleteplease zip file email eijazmusharraf@hotmail.com
ReplyDeleteplease zip file email eijazmusharraf@hotmail.com
ReplyDeleteI need the source code in zip file please send me anerola.was.atorollari@gmail.com
ReplyDeleteGreat tutorial I am impressed , Please send me the source code in zip file in anerola.was.atorollari@gmail.com
ReplyDeletei need this source code zip file plz send me at itutkarshpandey@gmail.com
ReplyDeletei need this source code zip file plz send me at itutkarshpandey@gmail.com
ReplyDeleteplz send me code raju.ahir088@gmail.com
ReplyDeletei want its source code.please send me...
ReplyDeletemadihamughal57@gmail.com
i want its source code plz send me
ReplyDeletemadihamughal57@gmail.com
i need this source code zip file plz send me at mian.uzairghafoor@gmail.com
ReplyDeletei need this source code zip file plz send me at mian.uzairghafoor@gmail.com
ReplyDeletei want source code please sent me farhan.eurosottech@gmail.com
ReplyDeletenice send to me source code shergy123.im@gmail.com
ReplyDeleteplease send me source code
ReplyDeletejeweldiu28@gmail.com
Requesting the source code pls at : Laxmansharmarj29@gmail.com
ReplyDeletePlase share me the code
ReplyDeleteHi, Please Send me the code of this project on my email ID
ReplyDeletesaiprakash837@gmail.com
Can you send me the source code to yaphethonline@gmail.com ?
ReplyDeleteThank you :D
hi send me source code to javed.asad26@yahoo.com
ReplyDeletehi send me this source code plz through yosalangson123@gmail.com
ReplyDeletehi can you send the source code to voodoo635@hotmail.com ? cheers
ReplyDeletehi can you send me this source code to voodoo635@hotmail.com ? cheers
ReplyDeletehi send me source code to m.ghesmati1988@gmail.com
ReplyDeleteHi there, just wanted to mention, I liked this blog post.
ReplyDeleteIt was practical. Keep on posting!
please snd me database of this file on mahajanpoonam30@gmail.com
ReplyDelete