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>

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

posted on 2009-12-23 17:22  山河星月  阅读(142)  评论(0编辑  收藏  举报

导航