asp 选择控件中的值得方法 如DropDownList控件
来源:互联网 发布:php足球比分源码 编辑:程序博客网 时间:2024/04/29 03:34
控件如下
<anthem:DropDownList ID="DdlRewName" runat="server" AutoCallBack="true"
autopostback = "true" width="140px" Height="18px" OnSelectedIndexChanged="DdlRewName_SelectedIndexChanged1">
</anthem:DropDownList>
javascript代码如下
方法一 用jquery
<script src="../js/jquery-1.6.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
function ShowDialogWithParam(url,width,height)
{
var paramDDL=$("#ctl00_ContentSearch_DdlRewName").val();
href=url+paramDDL;
ShowDialog(href,width,height);
}
</script>
方法二
function ShowDialogWithParam(url,width,height)
{
var ddl=document.getElementById("<%=DdlRewName.ClientID%>");
var paramDDL=ddl.options[ddl.selectedIndex].value
href=url+paramDDL;
ShowDialog(href,width,height);
}
- asp 选择控件中的值得方法 如DropDownList控件
- ASP:DropDownList控件(选择类控件)
- asp.net DropDownList 控件
- ASP.NET dropdownlist控件
- ASP.NET中用三个DropDownList控件方便的选择年月日
- ASP.Net---服务器控件-----DropDownList
- asp:DropDownList控件触发OnSelectedIndexChanged
- ASP.NET控件之DropDownList
- asp.net DropDownList控件使用
- ASP.NET中的dropdownList控件无法选中项
- asp.net 中的DropDownList控件的前台与后台
- ASP.NETmvc5下使用DropDownList的使用 ,和asp.net里的DropDownList控件的方法
- asp.net中的时间日期选择控件
- 用三个DropDownList控件选择年月日【转】
- DropDownList控件置默认选择项完成
- dropDownList控件
- 在ASP.NET中用三个DropDownList控件方便的选择年月日【原创】
- 在ASP.NET中用三个DropDownList控件方便的选择年月日
- java中的初始化问题
- Python 二进制文件读取显示 .
- String、StringBuffer、StringBuilder的区别
- java中的封装
- Oracle 所有的hints
- asp 选择控件中的值得方法 如DropDownList控件
- 汇编知识总结(引子)
- win98下运行NET2。0程序
- 探索 Python,第 8 部分: 用 Python 的输入输出功能读取和写入数据
- /etc/rc.d目录介绍
- 物化视图PCT特性(2)
- 2038. String Reversion
- 中国的比尔·盖茨-不得不令我佩服了
- Eclipse扩展点总结之org.eclipse.ui.exportWizards