Varshini
asked on
How do refresh the page when selecting the drop list item ?
i have the drop down list with following values assigned to it.
19/02/1974
20/02/1974
21/02/1974
19/02/1974 is the first item in the drop list and it assigning default in page loading.
SelectedIndexChanged is not working when i select the value 19/02/1974 but the the event is firing for selecting other values.
SelectedIndexChanged event should work when i choose the 19/02/1974 . How to Achieve this ?
<asp:DropDownList ID="myDate" runat="server" AutoPostBack="True" Width="97px" OnSelectedIndexChanged="my Date_Selec tedIndexCh anged">
</asp:DropDownList>
19/02/1974
20/02/1974
21/02/1974
19/02/1974 is the first item in the drop list and it assigning default in page loading.
SelectedIndexChanged is not working when i select the value 19/02/1974 but the the event is firing for selecting other values.
SelectedIndexChanged event should work when i choose the 19/02/1974 . How to Achieve this ?
<asp:DropDownList ID="myDate" runat="server" AutoPostBack="True" Width="97px" OnSelectedIndexChanged="my
</asp:DropDownList>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Either add a --Select One-- record as the first itme in the drop down list, or optimally just load the '19/02/1974' page data on page load as well.
No reason to post back for a load, if you know that's already going to be the default value.