Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic ListBox selecteditem HELP!!

Status
Not open for further replies.

needscoop

Programmer
Nov 13, 2002
29
US
Scenario:
1) a button click event occurs, causing initial post
event - renders a page displaying some data from a query

2) a dynamically-populated radiobutton choice is clicked,
triggering IsPostback event, then radiobutton clicked event.

3) next step desired: radiobutton click causes 1 of 2
possible outcomes:
* some radiobuttons are to display a listbox
(to narrow subset of desired records)
* others just display records associated with the
radiobutton clicked (no further narrowing needed)

Quandry: In step 3) if I create the dynamic listbox I am unable to trigger the listbox SelectedIndexChanged event
unless AutoPostBack = true, but if autopostback is enabled
the listbox "click" selectedIndex no longer exists by the time the server postback happens. is there
any way (ViewState?) to trap the listbox that was clicked
before the postback happens?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top