Set selectedvalue for a dropdownlist using Javascript

后端 未结 1 781
南旧
南旧 2021-01-21 00:05

I have a dropdownlist that is populated by a webservice using the ajax cascading dropdown. I have not been able to set the selected value using javascript. It appears that the v

相关标签:
1条回答
  • 2021-01-21 00:52

    No, you cannot set the value from code-behind; you would have to use JavaScript to set the selected value if binding from a web service. The web service binds everything after the server-side process runs and can only be affected by javascript.

    HTH.

    0 讨论(0)
提交回复
热议问题