按照搜索出来的结果<%
string[] achDrives=Directory.GetLogicalDrives();int nNumOfDrives=achDrives.Length;for (int i=0;i<nNumOfDrives;i++)
DropDownList1.SelectedValue = achDrives[i];
%>生成的页面中DropDownList没有数据,这里应该怎么改?
string[] achDrives=Directory.GetLogicalDrives();int nNumOfDrives=achDrives.Length;for (int i=0;i<nNumOfDrives;i++)
DropDownList1.SelectedValue = achDrives[i];
%>生成的页面中DropDownList没有数据,这里应该怎么改?
{
if (!IsPostBack)
{
LoadDicFrameCode();
}
} /// <summary>
/// 绑定页面结构组成字典
/// </summary>
private void LoadDicFrameCode()
{
DicPagePartCodeBLL dicPagePartCodeBLL = new DicPagePartCodeBLL();
ddl_DicPagePartCode.DataSource = dicPagePartCodeBLL.GetAllDicPagePartCodes();
ddl_DicPagePartCode.DataValueField = "Id";
ddl_DicPagePartCode.DataTextField = "FPagePartName";
ddl_DicPagePartCode.DataBind();
}