protected void getDayOfWeek(int selectedDay) { if ((int)DateTime.Now.DayOfWeek >= selectedDay || (int)DateTime.Now.DayOfWeek <= selectedDay) { Session["SelectedDay"] = DateTime.Now.AddDays(-((int)DateTime.Now.DayOfWeek - selectedDay)).ToShortDateString(); } }
protected void ddlEmployeeID_SelectedIndexChanged(object sender, EventArgs e) { DataTable dTable = new DataTable(); dTable = systemBusinessLayer.GetAllEmployeesInfo(); foreach (DataRow dRow in dTable.Rows)//Go through each row inside datatable { string empIDNumber = dRow["Fullname"].ToString(); if (ddlEmployeeID.SelectedItem.Text == empIDNumber) { Session["idnumber"] = dRow["EmpRecNumber"].ToString(); } loagrvSlots(Convert.ToInt32(Session["idnumber"]), Session["SelectedDay"].ToString()); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)