By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,478 Members | 1,374 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,478 IT Pros & Developers. It's quick & easy.

Dropdownlist selected value

P: n/a
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.

Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.