http://community.csdn.net/Expert/topic/4271/4271972.xml?temp=.6345331

解决方案 »

  1.   

    点击一个按钮,在一个名为detail的框架中打开新页面a.aspx的后台代码怎么写? 
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<Input type="Button" OnClick="top.detail.location.href='a.aspx'" Value="Click Me">
      

  2.   

    非得在服务器端的话
    就把top.detail.location.href='a.aspx'这段js用response.write出来就可以了
      

  3.   

    或者使用string scriptString = "top.detail.location.href='a.aspx'";
    if(!this.IsStartupScriptRegistered("Startup"))
             this.RegisterStartupScript("Startup", scriptString);
      

  4.   

    呵呵,看来没人解救人呀?我来吧..测试通过!把你的IFrame作为服务器控件运行。然后在事件中detail.Attributes["src"]="a.aspx";你可以结贴了!