客户端的脚本?顺便散散分!!! alert(document.all('DropDownList1').options[0].text); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 i=form1.DropDownList1.selectedIndex;text=form1.DropDownList1(i).value; Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Button1.Attributes("onclick") = "alert(document.all('DropDownList1').options[0].text);return false;" End Sub trydocument.getElementById('DropDownList1').value document.all('DropDownList1').options[document.all('DropDownList1').selectedIndex].innerText thanks for your points:) 是不是dorpdownlist的autopostback属性没有设置? 多谢各位赏光,特别感谢 hgknight(江雨.net)!!新年快乐!! button大事件!!!求解决 fck "Invalid file type" 如何判断页面有没有带参数 在线等 .net 的TreeView控件问题 问个div的问题.高手来帮忙. === [菜鸟问题] 如何让一个"存储过程"返回一个表 ??? === 滚动新闻的问题——希望点击后可以弹出新页面~在线等 HyperLink 如何邦定mailto 呢,在线等 谁能帮帮我! 在datagrid模版列中如何在编辑状态把一个bool字段绑定到下拉列表? csdn论坛的tree和MSDN差不多,怎么写的,有原代码吗? Repeater,DataList,DataGrid在什么时候用哪个好
text=form1.DropDownList1(i).value;
document.getElementById('DropDownList1').value