//Bind dropdown leave type private void BindLeaveType() { ddlLeaveType.Items.Clear(); DataTable dt = leave.FetchLeaveTypes(); ddlLeaveType.DataSource = dt; ddlLeaveType.DataTextField = "LeaveType"; ddlLeaveType.DataValueField = "LeaveTypeId"; ddlLeaveType.DataBind(); ddlLeaveType.Items.Insert(0, new ListItem("Select Leave Type", "0")); }