Click here to Skip to main content
Click here to Skip to main content
Articles » Web Development » Ajax » Controls » Downloads
 
Add your own
alternative version

Cascaded dropdown using jQuery

, 28 May 2009
Implementation of cascaded dropdowns using jQuery.
Jquery.zip
Jquery
App_Code
App_Data
Bin
AjaxControlToolkit.dll
ar
AjaxControlToolkit.resources.dll
cs
AjaxControlToolkit.resources.dll
de
AjaxControlToolkit.resources.dll
es
AjaxControlToolkit.resources.dll
fr
AjaxControlToolkit.resources.dll
he
AjaxControlToolkit.resources.dll
hi
AjaxControlToolkit.resources.dll
it
AjaxControlToolkit.resources.dll
ja
AjaxControlToolkit.resources.dll
ko
AjaxControlToolkit.resources.dll
nl
AjaxControlToolkit.resources.dll
pt
AjaxControlToolkit.resources.dll
ru
AjaxControlToolkit.resources.dll
tr-TR
AjaxControlToolkit.resources.dll
zh-CHS
AjaxControlToolkit.resources.dll
zh-CHT
AjaxControlToolkit.resources.dll
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
     <script type="text/javascript" src="jquery-1.3.2.min.js"></script>
     <script type="text/javascript" src="Default.js"></script>
</head>
<body>
    <form id="form1"  runat="server">
    <div>
    <table>
    <tr>
    <td>Select FileType</td>
    <td width="300 px">
        <asp:DropDownList ID="ddFileType" class="FillDD" SuccessMethod="outputDT" TargetControl="ddFileColumn" ErrorMethod="ShowError" Item="FILECOLID" Description="NAME" ServerMethod="Default.aspx/GetFileColumn" width="300 px" runat="server">
            <asp:ListItem Value="-1">---Select---</asp:ListItem>
        </asp:DropDownList>
    </td>
    <td>
        <asp:Button ID="Button1" class="AJAX" SuccessMethod="outputDT" TargetControl="ddFileType" ErrorMethod="ShowError" Item="FILETYPEID" Description="FILETYPENAME" ServerMethod="Default.aspx/GetFileType" runat="server" Text="Button"  /></td>
    </tr>
      <tr>
    <td>Select FileColumn</td>
    <td width="300 px" colspan="2">
        <asp:DropDownList ID="ddFileColumn" class="FillDD" SuccessMethod="outputDT" TargetControl="ddValidation" ErrorMethod="ShowError" Item="VALIDATIONID" Description="VALIDATIONNAME" ServerMethod="Default.aspx/GetValidations" width="300 px" runat="server">
            <asp:ListItem Value="-1">---Select---</asp:ListItem>
        </asp:DropDownList>
        
    </td>
    </tr>
    <tr>
    <td>Validation</td>
    <td width="300 px" colspan="2">
        <asp:DropDownList ID="ddValidation" width="300 px" runat="server">
            <asp:ListItem Value="-1">---Select---</asp:ListItem>
        </asp:DropDownList>
    </td>
    </tr>
    </table>
    </div>
    </form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

himanshu2561
Web Developer
India India
g

| Advertise | Privacy | Mobile
Web04 | 2.8.140718.1 | Last Updated 28 May 2009
Article Copyright 2009 by himanshu2561
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid