Hello Nidhi1214,
The following is my testing result.
<form id="form1" runat="server">
<div class="hasJS">
<asp:DropDownList class="custom" ID="myid" runat="server" OnSelectedIndexChanged="myid_SelectedIndexChanged" AutoPostBack="True" onChange="myChange();">
<asp:ListItem>Hello</asp:ListItem>
<asp:ListItem>Hello1</asp:ListItem>
<asp:ListItem>Hello3</asp:ListItem>
</asp:DropDownList>;
</div>
<script type="text/javascript">
function myChange() {
alert("Hai");
}
</script>
It seem that everything works well. when the dropdownlist index has changed , The onchange property will be called first , then the OnSelectedIndexChanged event is triggered. these methods have the order of execution. And If I misunderstand what
you want , you could provide more information about your issues.
I think the follow forum is a better place that you should post.
https://forums.asp.net/
Best regards,
feih_7
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.