Response.Write("<script>window.top.i_left.location='a.aspx';</script>")

解决方案 »

  1.   

    <input onclick="i_left.location='a.aspx';" type=button>
    <iframe id=i_left src=b.aspx></iframe>
      

  2.   

    不行啊。
    Response.Write("<script>window.top.i_left.location='a.aspx';</script>")
      

  3.   

    ----------------------protected HtmlGernericControl i_left;private void linkBtn_Click(object sender,EventArgs e)
    {
        i_left.Attributes["src"]="yourURL";
    }
      

  4.   

    protected HtmlGernericControl i_left;
    显示未将对像设置到实例
    private void linkBtn_Click(object sender,EventArgs e)
    {
        i_left.Attributes["src"]="yourURL";
    }
      

  5.   

    已解决
    方法
    在 iframe 里面加个 runat="server" 在加个ID号。然后在后面声名:
    HtmlGenericControl frame = ID号;然后在
    frame.Attributes["src"] = "filePath";