private void BindTravellers() { try { ddlTraveller.Items.Clear(); DataSet objDs = _objBALUser.GetAllTravellers(); if (objDs.Tables[0].Rows.Count > 0) { ddlTraveller.DataSource = objDs; ddlTraveller.DataValueField = "TravellerId"; ddlTraveller.DataTextField = "TravellerName"; ddlTraveller.DataBind(); ddlTraveller.Items.Insert(0, new System.Web.UI.WebControls.ListItem("ALL", "0")); } else { ddlTraveller.Items.Insert(0, new System.Web.UI.WebControls.ListItem("ALL", "0")); } } catch (Exception ex) { lblMsg.Text = _objBOUtiltiy.ShowMessage("danger", "Error", ex.Message); } }