Hi,
I have a problem in assigning the selected value in the dropdown
to a hidden control. It goes like this.
I have a repeater control. In the repeater control’s item template, I have a
hidden control and a placeholder control. I must generate the required number
of dropdowns and the buttons dynamically based on a field value in my
dataset. So I do the same in my code behind and add the generated controls to
the place holder in the Repeater’s Item databound event.
The requirement is to pass the selected value in the dropdown to a method in
my business object. So I do the assigning in my client side to a hidden
textbox and then call the ItemCommand event of the repeater where i must do
the server side procesing with the selected value in the dropdown. After
assigning the selected value in the dropdown to the hidden textbox when I try
to access the value in the hidden textbox, I always have an empty value in
the textbox. Any pointers will be of great help.