private void ImageButton1_Click(object sender, System.Web.UI.ImageClickEventArgs e)
{ Response.Write("<script>parent.frames['rightframeName'].location='new.aspx'</script>");
}

解决方案 »

  1.   

    楼上正解,但也可以用Button的onclick事件在Client端写Script做
      

  2.   

    Response.Write("<script>parent.rightFrameName.location='change.aspx';</script>");----
    rightFrameName 用右边框架名代替
      

  3.   

    在页面的 PageLoad 里写入:
    ImageButton1.Attributes["onclick"] = "javascript: parent.frames['rightframeName'].location.href = 'new.aspx'; return false";
      

  4.   

    Response.Write("<script>parent.frames['rightframeName'].location='new.aspx'</script>");
      

  5.   

    Response.Write("<script>parent.frames['rightframeName'].location='想到哪就用哪个路径'</script>");
    写在CLICK事件里面
      

  6.   

    RegisterStartupScript("*", "<script>window.parent.contents.location.replace('目标页');</script>")
    这个应该也是可以的