protected void Button9_Click(object sender, EventArgs e) { TextBox12.Text = ""; string result = ""; foreach (ListItem li in ListBox2.Items) { result += li.Value + ","; } // Remove the trailing comma in the end TextBox12.Text = result.Remove(result.LastIndexOf(","), 1); ModalPopupExtender19.Hide(); }
protected void Button12_Click(object sender, EventArgs e) { TextBox1.Text = TextBox4.Text; ModalPopupExtender19.Hide(); }