Hi Guys,
I've got this asp.net drop down control that displays other textbox controls when the value is not UK (this is to help find UK addresses using postcodes). When UK is reselected I will like to hide the other controls. I've enabled view state and AutoPostBack to true. I have an onSelectedIndexChanged event that only gets fired once (when the dropdown value changes to a different country as by default it's UK)
I'll like to have the OnSelectedIndexChanged to fire every time the value is different but this isn't the case. Please help.
Cheers
p.s. Here's the code snippet, the site doesn't allow the server side controls to be displayed, I hope it's clear? thanks
"...DropDownList runat="server" ID="Country2" AutoPostBack="True" OnSelectedIndexChanged="Country2_SelectedIndexChanged" DataSource="<%# RegionList %>" DataTextField="Name" DataValueField="Code" CssClass="dropdown country">...
protected void Country2_SelectedIndexChanged(object sender, EventArgs e) { DropDownList d = (DropDownList)sender; addressEntry.CountryPrePostBack_SelectedIndexChanged(d.SelectedItem.Value); }