DropDownList 打开新的网页

1.AutoPostBack="false"
2.DropDownList2.Attributes.Add("onchange", "javascript:openwindow(this.value)");
3.<script type=text/javascript>
function openwindow(url)
{
//alert(url)
if(url!=""){
window.open(url);

}

}
</script>

看明白了自己加到你的代码里

原文地址:https://www.cnblogs.com/liyugang/p/1630816.html