I am developing a radiobutton list in asp. I need to access the items of radiobutton list one
while (reader.Read())
{
RadioButtonList1.Items.Add(reader["options"].ToString());
}
what I need to do is check the first item in the list. I am very beginner in ASP. Just started couple of day back.
要检查第一项,只需使用:
RadioButtonList1.Items[0].Selected = true;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.