I have a dropdownlist with 5 items. Value of last item is "other". By choosing "other" appears popup with input. The value of this input i set to this item by javascript. So value becoms inserted text. When i submitting the form, it doesn't work with this dynamic value, but other items of select works. Any ideas? Thanks very much!
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- Carriage Return (ASCII chr 13) is missing from tex
- void before promise syntax
- Keeping track of variable instances
Here is a quick example of using Request.Params collection to read dynamically added value.
Here is the client side code.
Here is the server side code to read the value.
Just Update you Function
Cheers
I have tested it myself, it works. Following is a complete example:
Rather than set this value as droupdown list item value, you can use hiden field
set value using JavaScript as below
hiddenField value can access from code behind as below