开发者

Get SelectedValue at SelectedIndex in DropDownList?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜