Hi There,
I need to update the selected item inside a webcombo control that is within a user control (let's call that the TargetUserControl) when I select an item from another webcombo within another user control (let's call that user contro the SourceUserControl).
When the user selects an item from the first webcombo from the SourceUserControl, it triggers an update to select the appropriate item on the TargetUserControl's webcombo value. I am unable to get the webcombo control ID of my target webcombo that I need to do the update on easily. Currently I have something in my code behind that builds a string that appends all the target webcombo control IDs and then expose that to my Javascript side as a global variable using "<%= myWebComboIDs %>". However, it's not elegant. And I still need to find out which action is associated with which TargetUserControl's webcombo control. (The number of TargetUserControls loaded on the page are dynamic. ie there could be 1 to 5 similar TargetUserControls on the same page based on user's previous action.)
I don't want to do any postback after I perform a selection... So I would like to stay with using Javascript to the update to my TargetUserControls. Is there a better way of specifying a target webcombo that I want to do an update on by using client side Javascript? Any ideas on how to get the dynamically loaded webcombo control's ID within my TargetUserControl?
Thanks,
Ken