private void LoadFromsNameDropDownList() { DataSet ds = new DataSet(); var client = new FormManagmentServiceClient(); ds = client.ListFormsName(Convert.ToInt32(DisplayDropDownList.SelectedValue)); ListFormsDropDownList.DataSource = ds; ListFormsDropDownList.DataTextField = "TRANS_FORM_NAME"; ListFormsDropDownList.DataValueField = "TRANS_FORM_NO"; ListFormsDropDownList.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { DisplayDropDownList.DataSource = LoadApplicationNameDropDownList(); DisplayDropDownList.DataTextField = "TRANS_APP_NAME"; DisplayDropDownList.DataValueField = "TRANS_APP_NO"; DisplayDropDownList.DataBind(); ListFormsDropDownList.DataBind(); LoadFromsNameDropDownList(); LoadFormListGridView(); LanguageListDDList.DataSource = LoadLanguage(); LanguageListDDList.DataTextField = "TRANS_LANGUAGE"; LanguageListDDList.DataValueField = "TRANS_LANG_NO"; LanguageListDDList.DataBind(); } }