开发者

Get SelectedValue at SelectedIndex in DropDownList?

开发者 https://www.devze.com 2023-01-29 11:58 出处:网络
Is this possible? I programatically change the selected index when a certain event is fired using this code:

Is this possible? I programatically change the selected index when a certain event is fired using this code:

DropDownList.SelectedIndex = DropDownList.SelectedIndex + 1

Now I want to update a corresponding textbox with the text that is in the new SelectedIndex of the DropDownList via postb开发者_C百科ack.

What's the easiest way to do this?


I know how I can do this in javascript.... I was just wondering if i could do this in the VB code behind.


TextBox.Text = DropDownList.SelectedValue;

Read more about ListControl.SelectedValue

0

精彩评论

暂无评论...
验证码 换一张
取 消