foreach (RepeaterItem RI in rpOda.Items)
{
RadioButtonList rbl = RI.FindControl("rpDurum") as RadioButtonList;
if (rbl.SelectedIndex != -1)
{
Response.Write(rbl.SelectedValue.ToString());
}
}en böyle yaptım ama yine olmadı
--R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 10:54:14 -->-> Daha önceki mesaj 10:51:47 --
for (int i = 0; i < rpOda.Items.Count; i++)
Bu şekilde deneyin.
Düzenleme: Gece gece kafam gitti, zaten aynı işi yapıyor. Radiobuttonlist dolu geliyor mu?
Yanlış hatırlamıyorsam buttonlist içinde ek bir for gerekiyordu.
for (int i = 0; i < rpOda.Items.Count; i++)
{
RadioButtonList rbl = (RadioButtonList)rpOda.Items[i].FindControl("rpDurum");
if (rbl != null)
{
foreach (ListItem li in rbl .Items)
{
// ...
}
}
}
buda çalışmadı üstad.