DropdownList SelectedIndex不起作用 [英] DropdownList SelectedIndex Not Working

查看:62
本文介绍了DropdownList SelectedIndex不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我已经使用了两个dropdownlist,其中我想将第一个dropdownlist的selectedindexchanged的值转换为第二个dropdownlist.但是问题是,aspx页面上没有selectedindexchanged事件.

hello,


I have used two dropdownlist,in which i want to get value on selectedindexchanged of first dropdownlist into second dropdownlist.but the problem is selectedindexchanged event is not coming on aspx page.

how to solve this problem???

推荐答案

Hi,

     You have to add this event in source like  <asp:dropdownlist id="DropDownList1" runat="server" onselectedindexchanged="DropDownList1_SelectedIndexChanged" xmlns:asp="#unknown">
        </asp:dropdownlist>

otherwise you can find in properties window. There will be yellow icon. If you choose that you can see this event in Action node. Just Click that.


这篇关于DropdownList SelectedIndex不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆