The following code:
ListItem li = rbl.Items.FindByValue(rbl.SelectedValue);
if (li != null)
works ok, but if the page is posted-back the attributes get lost.
ASP .NET does not save attributes of ListItem in ViewState so attributes of ListItem are not persisted between postbacks. Thus the behaviour observed is as expected.
pls help me out.......