开发者

MsgBox is not displaying the right value

I have a DropDownList, and when SelectedIndex is changed any event is triggered.

I'm putting on it for exemple msgbox, but it's not working.

What's the problem ?

EDIT;

now that's working after doing AutoPostBack = True. I did this, but i't giving me always '0' as开发者_运维百科 result

Protected Sub VD_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
MsgBox VD.SelectedIndex
End Sub


You need to have AutoPostBack = True and hook up an event to OnSelectedIndexChanged.


Have you set the AutoPostBack value on your control to true ?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜