DropDownList问题 如何用javaScript使DropDownList呈现出没有选种的状态 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用js取出它的id然后设置DropDownList.SelectedValue=不存在的值就可以了。 <asp:DropDownList ID="gctx_dropdown" runat="server" AutoPostBack="True"> <asp:ListItem Value="0">好</asp:ListItem> <asp:ListItem Value="1">坏</asp:ListItem> function keep2008() { var keep= window.document.getElementById("gctx_dropdown"); keep.value='3';//这个属性,你可以自己调一下。 } http://www.syue.com/Procedure/HTML/39833.html你可以看看这个好像DropDownList到js里就没有SelectedValue了,直接用value就应该行! 绑定数据的问题 页面关闭,网站在上线在,Timer还有用吗? asp.net gridview templateFiled 参数传递 DataSourceID方式绑定的GridView能否实现查询功能 Net网站没有Webconfig配置文件能否运行? GridView 编辑的时候验证控件问题 asp.net生成静态html页面的问题. 为什么我创建TreeView控件会出错? 一个用ASP写的BBS的脚本,看不懂,来问 请问这是什么错误 checkboxList 勾选筐颜色 .net2005 编写类库问题
然后设置DropDownList.SelectedValue=不存在的值就可以了。
<asp:DropDownList ID="gctx_dropdown" runat="server"
AutoPostBack="True">
<asp:ListItem Value="0">好</asp:ListItem>
<asp:ListItem Value="1">坏</asp:ListItem>
function keep2008()
{
var keep= window.document.getElementById("gctx_dropdown");
keep.value='3';//这个属性,你可以自己调一下。
}
你可以看看这个
好像DropDownList到js里就没有SelectedValue了,直接用value就应该行!