p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 2.0 Basics (http://p2p.wrox.com/forumdisplay.php?f=136)
-   -   call serverside event from client side function (http://p2p.wrox.com/showthread.php?t=72199)

CodeBest January 12th, 2009 08:00 AM

call serverside event from client side function
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

<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 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>

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?

All times are GMT -4. The time now is 10:53 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.