protected void ApplicationNameDDList_SelectedIndexChanged(object sender, EventArgs e)
        {
            var client = new FormManagmentServiceClient();

            FormListGridView.DataSource = client.ListForms(Convert.ToInt32(ApplicationNameDDList.SelectedValue));
            FormListGridView.DataBind();
        }
        private void LoadGridView()
        {
            var client = new FormManagmentServiceClient();

            FormListGridView.DataSource = client.ListForms(Convert.ToInt32(ApplicationNameDDList.SelectedValue));
            FormListGridView.DataBind();
        }
Ejemplo n.º 3
0
        private void LoadFormListGridView()
        {
            var client = new FormManagmentServiceClient();

            FormListGridView.DataSource = client.ListForms(Convert.ToInt32(DisplayDropDownList.SelectedValue));
            FormListGridView.DataBind();
        }
        protected void btnAdd_Click(object sender, EventArgs e)
        {
            var applicationModel = new FormManagementServiceReference.ApplicationModel();

            // int appId = Convert.ToInt32(Request.QueryString["ApplicationId"]);
            applicationModel.ApplicationId = Convert.ToInt32(ApplicationNameDDList.SelectedValue);

            string    user   = (string)Session["user"];
            var       client = new FormManagmentServiceClient();
            FormModel form   = new FormModel
            {
                FormName     = txtBoxFormName.Text,
                FormCategory = txtBoxCategory.Text
            };

            string str = client.AddNewForm(form, applicationModel, user);

            //LabelRetunMessage.Text = str;
            FormListGridView.DataSource = client.ListForms(Convert.ToInt32(ApplicationNameDDList.SelectedValue));
            FormListGridView.DataBind();
            txtBoxFormName.Text = "";
            txtBoxCategory.Text = "";
        }