在cookie里面做一个标记 记录刷新后要定位的节点 然后刷新的时候级级展开,直到你的标志位后,进行操作。

解决方案 »

  1.   

    ifrem 点了删除按钮后 注册一个脚本javascript:parent.document.location.href=parent.document.location.href;
      

  2.   

    (dhtml编程)左右都使用iframe 或者(asp.net编程)不要使用iframe。
      

  3.   

    StringBuilder scriptstring = new StringBuilder();
    scriptstring.Append("<script language=javascript>");
    scriptstring.Append("parent.document.location.href=parent.document.location.href;");
    scriptstring.Append("</script>");
    string js = scriptstring.ToString();
    Page.RegisterClientScriptBlock("Setfirstfocus", js);
      

  4.   

    (dhtml编程)左右都使用iframe 或者(asp.net编程)不要使用iframe。
    为什么?
      

  5.   

    c#中用StringBuilder类需要引用哪个命名空间?
      

  6.   

    如果你使用dhtml对象(window.Frames)来控制,不需要刷新。如果你不使用iframe,那么虽然刷新,右边内容的细节状态都在页面上(例如右边有许多查询条件和一个GridView显示查询结果,那么页面无论如何刷新,查询条件总是保持的)。而iframe在父页面刷新的时候,我不知道如何正确保持状态。对于页面刷新时asp.net的速度你不用担心。几乎所有人都不会自己写灵活的缓存依赖项来控制片断缓存,从而他们的页面显示速度比应该有的速度慢很多被,不是也还用的好好的。而防止闪烁则是使用asp.net ajax。如果你不太了解asp.net,使用第一种办法去暂时解决问题比较好。
      

  7.   

    StringBuilder scriptstring = new StringBuilder();
    scriptstring.Append("<script language=javascript>");
    scriptstring.Append("parent.document.location.href=parent.document.location.href;");
    scriptstring.Append("</script>");
    string js = scriptstring.ToString();
    Page.RegisterClientScriptBlock("Setfirstfocus", js);
    右边iframe还是空白的,不能显示