private void getProtypeList() { SearchSuccessStoriesType search = new SearchSuccessStoriesType(); using (BLLSuccessStoriesType bll = new BLLSuccessStoriesType()) { DataTable dt = bll.GetTable(search);//ScriptQuery.SortEnum.DESC if (dt != null) { ddlSuccessStoriesType.DataSource = dt; ddlSuccessStoriesType.DataTextField = SuccessStoriesType.SSTypeName_FieldName; ddlSuccessStoriesType.DataValueField = SuccessStoriesType.ID_FieldName; ddlSuccessStoriesType.DataBind(); } } }
private void getProtypeList() { SearchSuccessStoriesType search = new SearchSuccessStoriesType(); using (BLLSuccessStoriesType bll = new BLLSuccessStoriesType()) { DataTable dt = bll.GetTable(search); if (dt != null) { ddlSuccessStoriesType.DataSource = dt; ddlSuccessStoriesType.DataTextField = SuccessStoriesType.SSTypeName_FieldName; ddlSuccessStoriesType.DataValueField = SuccessStoriesType.ID_FieldName; ddlSuccessStoriesType.DataBind(); ddlSuccessStoriesType.Items.Insert(0, new ListItem("==请选择类型==", "0")); } } }