-
Jan 19th, 2016, 10:19 AM
#1
Thread Starter
New Member
ComboBox click to refresh another ComboBox
Hello
This has been driving me crazy for awhile now, how do you refresh a combo box from clicking on something from another Combobox (using Visual Basic).
i dont want to use a button for this as i know it works that way by using .Databind() on the other combobox.
In access it is so easy by using the click event on a combo box but visual studio does not seem to use it.
Help please!
-
Feb 4th, 2016, 11:14 AM
#2
Thread Starter
New Member
Re: ComboBox click to refresh another ComboBox
Any ideas?
-
Feb 4th, 2016, 02:44 PM
#3
Hyperactive Member
Re: ComboBox click to refresh another ComboBox
Hi, you'll want to use the OnSelectedIndexChanged event on the first dropdownlist to data bind the second.
-
Feb 5th, 2016, 06:46 AM
#4
Thread Starter
New Member
Re: ComboBox click to refresh another ComboBox
Thanks but i tried that but it didnt work.
But i finally solved it!
Adding AutoPostBack="True" to the asp code!
<asp ropDownList ID="DropDownList2" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="SlotDateCombo" DataValueField="SlotDateCombo">
</asp ropDownList>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|