本文介绍了下拉列表的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生您好,
我正在做一个cdoe,其中我很好地使用了Dropdownlist,因为我们知道dropdownlist中不存在一个名为onchange的属性,但是当我们调用任何函数时,它如何工作却为什么不给出错误,因为使用了任何其他控件都给出错误,为什么这是带有dropdown的onchange属性的原因
Hello sir,
I was doing one cdoe in which I used Dropdownlist well as we know that there is a property named onchange doesn''t exist in dropdownlist but when we call any function it works how why it doesn''t gives error because using any field in any other control gives error why this is with onchange property of dropdown
<asp:Dropdownlist ID="ddlProject" runat="Server" AutoPostback="true" Onchange="return Restrict();" >
请告诉onchange是否在dropdwon的属性中不存在,当我们运行程序时它如何执行
Please tell if onchange doesn''t exist in property of dropdwon how it execute when we run our program
推荐答案
protected void ddlCity_SelectedIndexChanged(object sender, EventArgs e)
{
//your code
}
<asp:dropdownlist id="ddl" onchange=" a()" onabc="a()" runat="server">
这篇关于下拉列表的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!