Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cann't access selected value in selection changed event of dropDown?

Status
Not open for further replies.

someTimeOnly

Technical User
Oct 12, 2003
78
0
0
PK
very strange, I cann't access ddMydorpDown.selected value in its selection changed event. I want to query to database in the selection chaged event on the basis of new selected value of dropdown.

What am i missing? Please, let me know.
 
ok, I'll give detail of my problem later as I'm not having code right here.
 
'Set the autopostback to true

Private Sub DropDownList1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged
Dim MyVal As String = CType(sender, DropDownList).SelectedValue
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top