gatesj420
01-05-2004, 01:36 AM
I have a combo/drop down box on my aspx form and when I select a different item from that box, I want the item selected to appear in a label on the same form. Any Help would be great
Thanks,
Jeff
Thanks,
Jeff
Combo Box Questiongatesj420 01-05-2004, 01:36 AM I have a combo/drop down box on my aspx form and when I select a different item from that box, I want the item selected to appear in a label on the same form. Any Help would be great Thanks, Jeff gundavarapu 01-06-2004, 02:20 AM try this code Private Sub DropDownList1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DropDownList1.SelectedIndexChanged Me.Label1.Text = DropDownList1.SelectedItem.Text End Sub Hope this helps!!! gatesj420 01-07-2004, 04:00 PM I tried to use the code that you said to use but it still doesn't work. It will work when I hit a button, but I just want it to appear when the selected index is changed. I opened a new windows app and it works there, but it won't in an asp.net app. Thank you for your reply and help Gates gundavarapu 01-07-2004, 09:04 PM Just set the AutoPostBack Property of the DropDownList1 to True. Hope this helps! gatesj420 01-09-2004, 07:27 PM Thank you so much for your help Sidhu. It Worked! |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum