在asp.net中RadioButtonList怎样将选中的值赋给其它变量

2024-12-02 00:58:49
推荐回答(2个)
回答(1):

selectvalue

回答(2):

private void button1_Click(object sender, EventArgs e)

        {

            if (radioButton1.Checked == true)

            {

                this.textBox1.Clear();

                textBox1.Text = radioButton1.Text;

            }

            else

            {

                this.textBox1.Clear();

                textBox1.Text = radioButton2.Text;

            }

        }

方法在Button事件写