如何给OpenModalDialog附值 我的页面有两个DropDownList,我想在页面跳转的时候将值附加到strYear后面? OnClientClick="return OpenModalDialog('LinePnAdd.aspx?strYear=请高手赐教谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 document.getElementById('<%= DropDownList.ClientID %>').value <head runat="server"> <title></title> <script type="text/javascript"> function openDialog() { var city = document.getElementById('<%=ddlCityList.ClientID %>'); var selectedCity = city.options[city.selectedIndex].value; var url = 'LinePnAdd.aspx?strYear=' + selectedCity; OpenModalDialog('LinePnAdd.aspx?strYear=' + url); return false; } </script></head><body> <form id="form1" runat="server"> <div> <asp:DropDownList ID="ddlCityList" runat="server"> <asp:ListItem Text="上海" Value="1"></asp:ListItem> <asp:ListItem Text="长沙" Value="2"></asp:ListItem> <asp:ListItem Text="北京" Value="3"></asp:ListItem> </asp:DropDownList> <asp:LinkButton ID="lnkbtn" OnClientClick="return openDialog();" runat="server">测试</asp:LinkButton> </div> </form></body></html> asp.net 项目部署 求解 使用Nvelocity的时候,提示找不到资源文件? Microsoft Jet 数据库引擎找不到对象 无法表述或者形容的问题(暂且称为字母输入识别排序吧) 散分:财付通或者快钱宝接口示例 请帮忙看看这是为什么啊! 用DataSet生成一个Xsd为什么会有这样的问题? 为什么这样动态创建组件后,获取不了值 调试vs bs程序 无法识别的属性“targetFramework”。 为什么我总是无法浏览本地机器Framework .NET中的QuickStart ? 大侠们,请教一个简单问题,速来解决!很急…… TreeView 没有滚动条
<title></title> <script type="text/javascript">
function openDialog() {
var city = document.getElementById('<%=ddlCityList.ClientID %>');
var selectedCity = city.options[city.selectedIndex].value;
var url = 'LinePnAdd.aspx?strYear=' + selectedCity;
OpenModalDialog('LinePnAdd.aspx?strYear=' + url);
return false;
}
</script></head>
<body>
<form id="form1" runat="server">
<div>
<asp:DropDownList ID="ddlCityList" runat="server">
<asp:ListItem Text="上海" Value="1"></asp:ListItem>
<asp:ListItem Text="长沙" Value="2"></asp:ListItem>
<asp:ListItem Text="北京" Value="3"></asp:ListItem>
</asp:DropDownList>
<asp:LinkButton ID="lnkbtn" OnClientClick="return openDialog();" runat="server">测试</asp:LinkButton>
</div>
</form>
</body>
</html>