用js给DropDownList填充值后,无法用ddlCity.SelectedItem.Text或
ddlCity.Items[ddlCity.SelectedIndex].Text;获取其值?怎样才能得到其值!!!!
各位大哥帮帮忙,急!!

解决方案 »

  1.   

    c#: ddlCity.SelectedValuejavascript:document.all('ddlCity').options[document.all('ddlCity').selectedIndex].text
      

  2.   

    document.all.DropDownList3.options[document.all.DropDownList3.selectedIndex].text
      

  3.   

    Request["ddlCity"].Tostring();//ddlCity的值这样取出的是你这个级联DropDownList的Value值:)
      

  4.   

    document.all('ddlCity').options[document.all('ddlCity').selectedIndex].text
      

  5.   

    如果后台代码无法从无刷新联动赋新值的dropdownlist中直接取值的话,可以放一些相应于dropdownlist的不可见input type=hidden runat=server来保存被选中的值,后台从这些隐藏域中取值就可以了。