protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if(this.RadioButtonList1 .Items [0].Selected)
            {
                Response.Write("<script>document.frames['downcontent'].location.href = '../ProjectList.aspx'</script>");
                //Page.ClientScript.RegisterClientScriptBlock(GetType(), "javascript", "  document.frames['downcontent'].location.href = '../FramePages/Mainhead.aspx'", true);
            }
            else
            {
                Page.ClientScript.RegisterClientScriptBlock(GetType(), "javascript", "alert('rubishtreeview')", true);
            }
        }

解决方案 »

  1.   

    RadioButtonList的AutoPostBack设置成true了吧?
      

  2.   


    如果是火狐。。
    document.frames['downcontent'].location.href = '../ProjectList.aspx'
    这段本身就是不兼容的。。换成这样试试
     Response.Write("document.getElementById('downcontent').contentWindow.location='../ProjectList.aspx';location.reload();'</script>");
      

  3.   

    window.frames[ "downcontent"].location.href=...
      

  4.   

    将代码放在onload里面      Page.ClientScript.RegisterClientScriptBlock(GetType(), "javascript", " window.onload=function(){document.frames['downcontent'].location.href = '../FramePages/Mainhead.aspx';}", true); 
      

  5.   

    RadioButtonList点击的时候运行了这个代码了吧?