Hi
I have below code . I want to set default value whose Status is 0. How it can be done
List<View_Student> objResult = bALStudent.GetStudentDetails(Convert.ToInt32(hdfStudentID.Value)); if (objResult != null) { ddlStudent.DataTextField = "Name"; ddlStudent.DataValueField = "ID"; ddlStudent.DataSource = objResult; ddlStudent.DataBind(); }
Thanks