I am populating a dropdownlist control from a database. That happes fine, however, when I display the dropdown at runtime, I want the first visible option to be "Please select a faculty member" (which would be option value 0). How can I accomplish that?
SqlConnection con = new SqlConnection(strConn);
string sqlFacultyMember = "usp_GetFacultyMember";
SqlCommand cmdFacultyMember = new SqlCommand(sqlFacultyMember, con);
cmdFacultyMember.CommandType = CommandType.StoredProcedure;
con.Open();
SqlDataAdapter ada = new SqlDataAdapter(cmdFacultyMember);
DataSet ds = new DataSet();
ada.Fill(ds);
ddlFacultyMember.DataSource = ds;
ddlFacultyMember.DataValueField = "UserID";
ddlFacultyMember.DataTextField = "FullName";
ddlFacultyMember.DataBind();