public DataTable GetTime(ConnectionSql con) { SortedList s1 = new SortedList(); s1.Add("@mode", "BindActive"); DataTable dt = con.GetDataTableSP("SP_MstShiftMaster", s1); return(dt); }
public void display() { SortedList s = new SortedList(); s.Add("@mode", "Display"); DataTable dt = con.GetDataTableSP("SP_Post", s); if (dt != null && dt.Rows.Count > 0) { datalist1.DataSource = dt; datalist1.DataBind(); } }