public void Button1_Click (object sender, System.EventArgs e)
{
// Is anything selected? The index is -1 if nothing is selected.
if (RadioButtonList1.SelectedIndex > -1) {
// The contents of the selection is available in the
// SelectedItem objects, which provides the Text, Value,
// and Selected properties.
Label1.Text="You chose: " + RadioButtonList1.SelectedItem.Text;
}
}
{
// Is anything selected? The index is -1 if nothing is selected.
if (RadioButtonList1.SelectedIndex > -1) {
// The contents of the selection is available in the
// SelectedItem objects, which provides the Text, Value,
// and Selected properties.
Label1.Text="You chose: " + RadioButtonList1.SelectedItem.Text;
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货