RadioButtonList and SelectedIndex

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
 
D

David Wier

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top