View Single Post
  #1 (permalink)  
Old January 12th, 2009, 08:00 AM
CodeBest CodeBest is offline
Registered User
 
Join Date: Jan 2009
Posts: 5
Thanks: 2
Thanked 0 Times in 0 Posts
Default call serverside event from client side function

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?
Reply With Quote