private void GetShifts(string LocationName) { try { Business business = new Business(); DataSet dsShifts = business.GetShiftsByLocationName(LocationName); ddlShift.DataSource = dsShifts; ddlShift.DataTextField = "shiftname"; ddlShift.DataValueField = "shiftID"; ddlShift.DataBind(); ddlShift.Items.Insert(0, new ListItem("Select", "0")); ddlgridShift.DataSource = dsShifts; ddlgridShift.DataTextField = "shiftname"; ddlgridShift.DataValueField = "shiftID"; ddlgridShift.DataBind(); ddlgridShift.Items.Insert(0, new ListItem("ALL", "0")); } catch (Exception ex) { ////Shobha, I cannot and will not be relieving you. I //expect you to continue working as we have agreed earlier. // I have made it very clear in our long conversation. //There is no second thoughts on my end. When we talked, //you have not mentioned anything about blank check. //Even if you did now, I cannot help. Please understand //we have to honor each of our commitments and fulfill our obligations. //I expect you to stick to your end of the relationship. // Anything else from you will cause immense damage and hurt to me and the organization. // It is simply not acceptable. } }
private void GetShifts(string LocationName) { Business business = new Business(); DataSet dsShifts = business.GetShiftsByLocationName(LocationName); ddlShift.DataSource = dsShifts; ddlShift.DataTextField = "shiftname"; ddlShift.DataValueField = "shiftID"; ddlShift.DataBind(); ddlShift.Items.Insert(0, new ListItem("ALL", "0")); }
private void GetShifts(string LocationName) { try { Business business = new Business(); DataSet dsShifts = business.GetShiftsByLocationName(LocationName); ddlShift.DataSource = dsShifts; ddlShift.DataTextField = "shiftname"; ddlShift.DataValueField = "shiftID"; ddlShift.DataBind(); } catch (Exception ex) { } }