/// <summary>
/// 绑定DropDownList的方法
/// </summary>
/// <param name="ddlist">DropDownList的ID</param>
/// <param name="dt">数据源DataTable</param>
/// <param name="strText">要绑定的Text</param>
/// <param name="strValue">要绑定的Value</param>
public static void BindControl(DropDownList ddlist, DataTable dt, string strText, string strValue)
{
ddlist.Items.Clear();
ddlist.DataSource = dt;
ddlist.DataTextField = strText;
ddlist.DataValueField = strValue;
ddlist.DataBind();
}