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>

看明白了自己加到你的代码里 DropDownList 打开新的网页

你可能感兴趣的:(list)