protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { LblDetails.Text = ""; // Populating the first gridview with all past req records LoadAllData(); // Populating the dropdownlist List <string> temp1 = new List <string>(); temp1.Add("All"); temp1.AddRange(RequisitionLogic.GetDeptNameList()); DdlDeptList.DataSource = temp1; DdlDeptList.DataBind(); } }