当我选择一个下拉列表时,它会触发Selectedindexchanged自己的事件以及其他下拉列表 [英] When I Select A Dropdownlist It Fires Selectedindexchanged Event Of Own And Also Other Dropdownlist
问题描述
每当我选择一个下拉列表时,它会触发所选择的事件更改事件,并触发另一个下拉列表选择的索引更改。
i有两个下拉列表,一个名称是ddlflatshop,另一个是ddlsoldrent,如果我选择ddlsoldrent然后它触发了更改的ddlsoldrent选定事件。
都有不同的选择索引更改事件。
公寓/商店名称:
Whenever I select a dropdownlist it fires selected event changed event of own and also fire a another dropdownlist selected index change.
i have two dropdown one name is ddlflatshop and another one is ddlsoldrent if i select ddlsoldrent then it fires the ddlsoldrent selected event changed.
both have diffrent selected index changed event.
Flat/Shop Name:
<asp:DropDownList ID="ddlflatshopename" runat="server" AutoPostBack="true" CssClass="ddl"
onselectedindexchanged="DdlflatshopenameSelectedIndexChanged" Width="200px">
出售租金:
Sold Rent:
<asp:DropDownList ID="ddlsoldrent" runat="server" CssClass="ddl" Width="200px"
AutoPostBack="True"
onselectedindexchanged="ddlsoldrent_SelectedIndexChanged">
<asp:ListItem Selected="True" Value="S">Sold
<asp:ListItem Value="R">
租金
任何人都可以帮助我。为什么这发生了任何想法...
只要尽快给我解决方案......
谢谢..
Rent
any one help me.why this happen any idea about it...
just give me solution as soon as possible......
thanks..
推荐答案
这是因为:EnableViewState属性设置为false。
This is because : EnableViewState property set to false.
在ddlsoldrent控件周围放置一个控制面板然后添加一个触发器包含ddlflatshopename的SelectedIndexChanged事件。
Put a control panel around the ddlsoldrent control then add a trigger containing ddlflatshopename's SelectedIndexChanged event.
这篇关于当我选择一个下拉列表时,它会触发Selectedindexchanged自己的事件以及其他下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!