string Username = User.Identity.Name; // Current Username DataTable dt; Employee_In_Department Depart_Class = new Employee_In_Department(); Depart_Class.Retrieve_Employee_In_Department_By_All(ref Connection_string, out dt); List(byte) arr = new List(byte)(); for (int i = 0; i < dt.Rows.Count; i++) { arr.Add(Convert.ToByte(dt.Rows[i]["Department_Id"])); // All Department Id in table } if (Username ==arr ) { }
if(age == 40 && name == "hitesh")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)