在想做个页面,上面有两个DropDownList控件,一个是国内网站列表,一个是国外站列表.AUTOPOSTBACK属性为TRUE现在我在第一个DropDownList里选择网页后可以打开,但在第二个DropDownList里选择后打开的还是第一个DropDownList里选中的网页,即时我在DropDownList2_SelectedIndexChanged事件里设置了DropDownList1.AUTOPOSTBACK=FALSE和DropDownList1.ENABLE=FALSE但还是没用,请问大家应该怎么做才不受干扰呢
解决方案 »
- asp.net(c#)中动态更改web.config连接数据库参数
- 送一点分! 页面传递多个值,怎么接收多个值?
- 为什么access表数据导完后,仍处锁定状态?
- 郁闷,是哪里问题?
- RenderAttributes修改action
- vs2005中如何安装部署项目!
- 分层包装后怎样用事务?
- 100分求助,急!!!怎么在.net里显示Crystal Report??
- 紧急
- 我装了.net中文版正式版,有没有办法想offic2000一样可以选择语言?
- datagrid中使用代码添加FooterTemplate出错,谢谢帮助
- 再加上100分,累计269分,★★★难题见真功★★要多少分给多少分,这贴在CSDN一天了也没人答上是咋么回事
<option value="#">-中央部门网站链接-</option>
<option value="http://www.gov.cn/">中国政府网</option>
<option value="http://www.mca.gov.cn/">中国民政部</option>
<option value="http://www.xyh99.net/">中国夕阳红网</option>
</select>
<script type="text/javascript">
function ToSelectUrl(obj)
{
var url=obj.value;
window.open(url,null,"top=5,left=5,width=600,resizable=yes,height=400,menubar=yes,toolbar=yes,scrollbars=yes,status=yes,location=yes");
}
</script>
Sub page_load()
End Sub Private Sub DropDownList1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
Select Case DropDownList1.SelectedValue
Case "百度"
Response.Redirect("WWW.BAIDU.COOM ")
Case "QQ"
Response.Redirect("WWW.QQ.COM")
End Select
End Sub Private Sub DropDownList2_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
Select Case DropDownList2.SelectedValue
Case "YAHOO"
Response.Redirect("WWW.YAHOO.COM")
Case "ASP.NET"
Response.Redirect("http://asp.net/")
End Select
End Sub
</script>
有没有注册呢