0
您好我正在從sql表填充下拉列表,我想添加一個項目,說'選擇狀態'作爲初始文本字段沒有值,以幫助提示從下拉,我該如何添加?將值添加到數據綁定下拉列表
statusConn.Open();
ddlStatus.DataSource = statusCMD.ExecuteReader();
ddlStatus.DataTextField = "Project_Status_Name";
ddlStatus.DataValueField = "Project_Status_ID";
ddlStatus.DataBind();
statusConn.Close();
謝謝你的工作! – Marcus72