摘要: 在web应用里,我们经常需要通过其他控件的事件触发动态构造DropDownList数据内容。在这节中,我们将会看到如何实现通过选择第一个下来框的内容来动态构造第二个下拉框的内容。首先准备好页面代码:View Code <form id="form1" runat="server"> <div align="left"> <fieldset style="width: 350px; height: 150px"> <p> 选择颜色</p> <table 阅读全文
posted @ 2012-01-14 19:23 PyCoder 阅读(1125) 评论(1) 推荐(0) 编辑
摘要: 这节我们将通过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 阅读全文
posted @ 2012-01-14 17:45 PyCoder 阅读(3383) 评论(0) 推荐(0) 编辑