Response.Redirect(DropDownList1.SelectedItem.Text,true);

解决方案 »

  1.   

    Codebehind="WebForm1.aspx.cs",写在后面啊~~
      

  2.   


    TO:楼上,我放到</script>后面也不行
      

  3.   

    Response.Redirect("http://www.microsoft.com");
      

  4.   

    Response.Redirect("http://"+ DropDownList1.SelectedItem.Text);说的对
      

  5.   

    要显示新页面,可以用javaScript实现
    javaScript:window.open("url")方法
      

  6.   

    做好是用htmlButton控件,给该控件添加OnClick事件
    string url= "javaScript:window.open('Common/RecordResume.aspx?TableID=" + TBBoardTableID.Text + "&RecordID="+ e.Item.Cells[0].Text + "', '', 'height=400, width=400, toolbar=no, menubar=no, resizable=yes, status=no,scrollbars=yes')";textButton.Attributes.Add("OnClick",url);