如何在主页面中用LinkButton链接一个页面,然后让这个页面在主页面的浮动框架里显示,小弟菜鸟,请各位大哥赐教,万分感谢!!!!!!

解决方案 »

  1.   

    设置新打开面的目标是主页的浮动框的ID!target='你的浮动框名称'
      

  2.   

    protected void LinkButton1_Click(object sender, EventArgs e)
        {
            this.iframe1.Attributes["src"] = "http://www.csdn.net";
        }
      

  3.   

    楼上的iframel用this打点出不来啊
      

  4.   

    <iframe id="iframe1" runat="server"></iframe>protected void LinkButton1_Click(object sender, EventArgs e)
    {
            HtmlGenericControl iframe1 = this.FindControl("iframe1") as HtmlGenericControl;
            if (iframe1 != null)
            {
                iframe1.Attributes["src"] = "http://www.csdn.net";
            }
            
    }