कैस्केडिंग ड्रॉप डाउन सूची को पॉप्युलेट करने के लिए निम्नलिखित लिंक देखें।
http://www.asp.net/ajaxLibrary/AjaxControlToolkit/CascadingSampleDropSite .aspx
http://www.codeproject.com/KB/aspnet/CascadingDropDown.aspxए>
http://www.aspsnippets.com/Articles /Creating-Cascading-DropDownLists-in-ASP.Net.aspx
कोड:
<table>
<tr>
<td>First</td>
<td><asp:DropDownList ID="DDLFirst" runat="server" AutoPostBack="true"
onselectedindexchanged="DDLFirst_SelectedIndexChanged"></asp:DropDownList></td>
</tr>
<tr>
<td>Secord</td>
<td><asp:DropDownList ID="DDLSecond" runat="server" AutoPostBack="true"
onselectedindexchanged="DDLSecond_SelectedIndexChanged">
<asp:ListItem Text="Select" Value="Select"></asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td>Thrid</td>
<td><asp:DropDownList ID="DDLThird" runat="server"><asp:ListItem Text="Select" Value="Select"></asp:ListItem> </asp:DropDownList></td>
</tr>
</table>
// कोड के पीछे संरक्षित शून्य पेज_लोड (ऑब्जेक्ट प्रेषक, EventArgs e) {if (!IsPostBack){// पहली ड्रॉप डाउनलिस्ट को बाइंड करने के लिए आपका कोड
}
}
protected void DDLFirst_SelectedIndexChanged(object sender, EventArgs e)
{
if (DDLFirst.SelectedIndex > 0)
{
string FirstDDLValue = DDLFirst.SelectedItem.Value;
// below your code to get the second drop down list value filtered on first selection
}
}
protected void DDLSecond_SelectedIndexChanged(object sender, EventArgs e)
{
if (DDLSecond.SelectedIndex > 0)
{
string SecondDDLValue = DDLSecond.SelectedItem.Value;
// below your code to get the third drop down list value filtered on Second selection
}
}