protected void dropdownlist1_SelectedIndexChanged(object sender, EventArgs e) { if (dropdownlist1.SelectedItem.ToString() == "Poor") { SetDropdowndetails("dropdownlist1", 1); } else { Selectednotpoor(); } } private void SetDropdowndetails(string Dropdownname, Int32 Dropdownid) { SelectedDropdown = Dropdownname.ToString(); hfnegativefeedback.Value = Dropdownid.ToString(); Negativepnlpopup(); } private void Negativepnlpopup() { try { textbox1.Text = ""; DataTable dt = new DataTable(); dt = (DataTable)ViewState["Remarks"]; if (ViewState["Remarks"] != null) { for (int i = 0; i < dt.Rows.Count; i++) { if (hfnegativefeedback.Value == dt.Rows[i][0].ToString()) { textbox1.Text = dt.Rows[i][1].ToString(); } } } ModalPopupExtender1.TargetControlID = SelectedDropdown.ToString(); textbox1.Focus(); ModalPopupExtender1.Show(); Pnlnegativefeedback.Visible = true; } catch (Exception e2) { } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)