C# getting selected value from dropdownlist in gridview asp net

后端 未结 4 1124
被撕碎了的回忆
被撕碎了的回忆 2021-01-06 13:23

How can I change the value of a textbox whenever a dropdownlist within a gridview has its value changed?

On page load, the textbox shows the selected value, but when

4条回答
  •  萌比男神i
    2021-01-06 14:25

    You should look into using data binding instead. You can bind the textbox.Text to the selecteditem.value, this will ensure that proper updating takes place

提交回复
热议问题