RadioButtonList and SelectedIndex

  • Thread starter Thread starter Lav KG
  • Start date Start date
L

Lav KG

Hi,

I'm populating a RadioButtonList on the fly.It is successfully getting
populated but when I click any of items it is not firing
SelectedIndexchanged event, SelectedIndex is always -1 and SelectedItem
is always null.

What could be the problem ?

Thanks in advance
Lav KG
 
I would assume that you're populating the RBL on the page load -
If so - make sure you surround your population of the RBL with an
If/Then/Postback block:
if not Page.IsPostBack then
' populate your RBL
end if
 
Back
Top