lbl_Content.Text = ((DropDownList).sender).Text;
“DropDownList”下有波浪线错误 1 “DropDownList”是“类型”,但此处被当做“变量”来使用 E:\C#\MyC#\WebControls1\DropDownList.aspx.cs 17 30 E:\...\WebControls1\
“DropDownList”下有波浪线错误 1 “DropDownList”是“类型”,但此处被当做“变量”来使用 E:\C#\MyC#\WebControls1\DropDownList.aspx.cs 17 30 E:\...\WebControls1\
下面这样不就OK啦DropDownList ddl = sender as DropDownList;
lbl_Content.Text = ddl.SelectedItem.Text;
改成这样
lbl_Content.Text = 控件名.Text;