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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top