关于asp.nat二级级联下拉菜单的做法,和数据库相连(不连数据库也行),
  选中菜单中的选项再传入数据库要怎么做。
 请各位帮忙,谢谢了。

解决方案 »

  1.   

    深圳某IT企业急招.net高人
    有意向者,请将简历发至[email protected]  招聘要求: 
    1、性别不限,统招本科及以上学历,电子信息、计算机等相关专业优先;
    2、熟悉.Net Framework 2.0,有C#、ASP.net两年以上开发经验。
    3、熟悉OOP、设计模式、有分层开发经验,团队协作能力强;
    4、至少熟悉一种大型SQL数据库,熟悉存储过程等脚本开发;
    5、熟悉HTML4.0、XHTML1.0与CSS,能熟练编写Javascript脚本;
    6、有电子商务类网站开发经验者优先。
    职位描述:
    负责业务系统平台网站设计开发,正常运转与维护。
      

  2.   

    去的选择的值
    this.DropDownList.SelectedItem.Value;
      

  3.   

    在AutoPostBack事件里写东西就可以了
      

  4.   

    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(this.DropDownList1.SelectedValue))
            {
                string sql = "select * from tablenamw where 字段='" + this.DropDownList1.SelectedValue + "'";
                DataSet ds;
                //查询,取数据
                //this.DropDownList2.DataSource = ds;
            }
        }
    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:DropDownList ID="DropDownList2" runat="server">
            </asp:DropDownList>