示例#1
0
 private void bindProvider()
 {
     ddlProvider.DataSource     = StorageInBLL.GetProviderInfo();
     ddlProvider.DataTextField  = "Name";
     ddlProvider.DataValueField = "ID";
     ddlProvider.DataBind();
     ddlProvider_SelectedIndexChanged(null, null);
 }
示例#2
0
 private void BindDropDownList()
 {
     /* Name,Number,ID */
     ddlProvider.DataTextField  = "Name";
     ddlProvider.DataValueField = "ID";
     ddlProvider.DataSource     = StorageInBLL.GetProviderInfo();
     ddlProvider.DataBind();
     ViewState["isDataBind"] = "Y";
 }