protected void FormView_Inquiry_ItemInserting(object sender, FormViewInsertEventArgs e) { DropDownList DropDownEmployeeName = FormView_Inquiry.FindControl("Name_Of_EmployeeDropDown") as DropDownList; e.Values["Name_Of_Employee"] = DropDownEmployeeName.SelectedValue; DropDownList DropDownDesignation = FormView_Inquiry.FindControl("Drop_employeedesignation") as DropDownList; e.Values["Designation_Of_Employee"] = DropDownDesignation.SelectedValue; }
protected void Button_new_Click(object sender, EventArgs e) { Multiview_Inquiry.SetActiveView(Multiview_Inquiry.Views[1]); FormView_Inquiry.ChangeMode(FormViewMode.Insert); }