Hi,
I want to call first dropdownlists selectedindexchange from the function called from second dropdownlists onchange event.
What I actually want is that I have two dropdownlists as
Code:
<asp:DropDownList ID="ddl1" runat="server" OnSelectedIndexChanged="ddl1_SelectedIndexChanged" AutoPostBack="true">
<asp:ListItem Value="Item1">Item1</asp:ListItem>
<asp:ListItem Value="Item1">Item2</asp:ListItem>
<asp:ListItem Value="Item1">Item3</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="ddl2" runat="server" onchange="javascript:fnddl2OnChange(ddl1);" >
<asp:ListItem Value="Item1">Item4</asp:ListItem>
<asp:ListItem Value="Item1">Item5</asp:ListItem>
<asp:ListItem Value="Item1">Item6</asp:ListItem>
</asp:DropDownList>
inside the onchange event of dropdownlist2 i.e. ddl2 i want to call selectedindexchange event of dropdownlist1 i.e. ddl1
How i'll do that?