select控件name="ds"

后台

 protected void Button1_Click(object sender, EventArgs e)
        {
            //this.TextBox1.Text = Request.Form["ds"].ToString();
            //this.TextBox2.Text = Request["ds"].ToString();
            string cal = "";
            foreach (string ele in Request.Form.AllKeys)
            {
                if (ele.Contains("sds"))
                {
                    cal = Request[ele];
                    break;
                }

            }
            this.TextBox2.Text = cal;
        }

点击button1就可获取选择的值。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2022-01-15
  • 2021-09-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-02
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
相关资源
相似解决方案