Hi all,
In my page iam using 4 dropdown and 4 buttons.
based on first dropdown selection, second dropdown is filling and so on
for each dropdown i have added a button
these all controls are inside the updatepanel.
dropdowns are working fine without reloading the page, but buttons are not firing.
below is my code
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" >
<Triggers>
<asp:AsyncPostBackTrigger controlid="ibtndist" eventname="Click" />
</Triggers>
<ContentTemplate>
<table >
<tr>
<td>
<asp:Label ID="Label1" runat="server" Text="country"></asp:Label>
</td>
<td>
<asp:dropdownlist ID="ddlcountry" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlcountry_SelectedIndexChanged"></asp:dropdownlist>
</td>
<td>
<asp:LinkButton ID="ibtncountry" runat="server" Width="25%" Height="25%" OnClick="ibtncountry_Click"></asp:LinkButton>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label2" runat="server" Text="state" ></asp:Label>
</td>
<td>
<asp:dropdownlist ID="ddlstate" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlstate_SelectedIndexChanged" >
<asp:ListItem>Select</asp:ListItem>
</asp:dropdownlist>
</td>
<td>
<asp:LinkButton ID="ibtnstate" runat="server" Width="25%" Height="25%" OnClick="ibtnstate_Click"></asp:LinkButton>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label4" runat="server" Text="city"></asp:Label>
</td>
<td>
<asp:dropdownlist ID="ddlcity" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlcity_SelectedIndexChanged">
<asp:ListItem>Select</asp:ListItem>
</asp:dropdownlist>
</td>
<td>
<asp:LinkButton ID="ibtncity" runat="server" Width="25%" Height="25%" OnClick="ibtngp_Click"></asp:LinkButton>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label5" runat="server" Text="Villages"></asp:Label>
</td>
<td>
<asp:dropdownlist ID="ddlvillages" runat="server" AutoPostBack="True">
<asp:ListItem>Select</asp:ListItem>
</asp:dropdownlist>
</td>
<td>
<asp:LinkButton ID="ibtnvill" runat="server" Width="25%" Height="25%" OnClick="ibtnvill_Click"></asp:LinkButton>
</td>
</tr>
</table>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger controlid="ibtncountry" eventname="Click" />
</Triggers>
</asp:UpdatePanel>
i have just added only one control in trigger, but it is not working
please correct my code