摘要:
在web应用里,我们经常需要通过其他控件的事件触发动态构造DropDownList数据内容。在这节中,我们将会看到如何实现通过选择第一个下来框的内容来动态构造第二个下拉框的内容。首先准备好页面代码:View Code <form id="form1" runat="server"> <div align="left"> <fieldset style="width: 350px; height: 150px"> <p> 选择颜色</p> <table 阅读全文
摘要:
这节我们将通过jQuery来获取DropDownList的Text/Value属性值。界面代码:<form id="form1" runat="server"> <div align="center"> <fieldset style="width: 400px; height: 80px;"> <p> 选择颜色:</p> <asp:DropDownList ID="ddlColor" runat="server&quo 阅读全文