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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Third DDL only populates Textbox with Index of 1

Status
Not open for further replies.

bubberz

Programmer
Dec 23, 2004
117
US
I have three dropdownlists, and the third is dependant on the selections of the first two ddls.

If I try to assign a Textbox's value to this third ddl,

Private Sub ddlResource_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlResource.SelectedIndexChanged
txtResource.Text = ddlResource.SelectedItem.ToString()
End Sub

and I select something like the 10th or 11th record, it always shows as the first record value.

I do have "PostBack"=true for this third ddl, and this ddl is populated in the Private Sub Page_PreRender handler
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top