我刚才刚做了个用户修改密码的模态窗口~第一次加载有的~关闭当前模态窗口后~在进入发现不会加载了~!
怎么会事,问题稍基础,见笑了~!

解决方案 »

  1.   

     登陆:
    string strScript = "<script language='javascript'>window.showModelessDialog('xgmima.aspx',window,'dialogWidth:300px;dialogHeight:200px;dialogTop:200px;dialogLeft:300px;status:no;scroll:no;');</script>";
            Page.RegisterClientScriptBlock(strScript, strScript);退出:
           Response.Write("<script>window.dialogArguments.window.location = window.dialogArguments.window.location;</script>");
            Response.Write("<script>window.close();</script>");
      

  2.   

    Response.Write(" <script>window.dialogArguments.window.location = window.dialogArguments.window.location; </script>"); 
    Response.Write(" <script>window.close(); </script>"); 
    ==
    Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script type='text/JavaScript'>window.dialogArguments.window.location = window.dialogArguments.window.location;window.close(); </script>");
      

  3.   

    就是弹出一个摸太窗口:
     string strScript = "<script language='javascript'>window.showModelessDialog('xgmima.aspx',window,'dialogWidth:300px;dialogHeight:200px;dialogTop:200px;dialogLeft:300px;status:no;scroll:no;');</script>";
    Page.RegisterClientScriptBlock(strScript, strScript);摸太窗口:加载
     if (!this.IsPostBack)
            {
                db_Coon cn = new db_Coon();
                name.Text = Session["name"].ToString();//用户名
                DataTable ad = cn.account(name.Text);
                pwd.Text = ad.Rows[0]["tb_pwd"].ToString();//密码
            }
    退出:       Response.Write("<script>window.dialogArguments.window.location = window.dialogArguments.window.location;</script>");
            Response.Write("<script>window.close();</script>");
      

  4.   

    模式窗口的页面里面的Page_laod里面写
    Response.Expires=-100
      

  5.   

    模态窗口都有缓存的
    在弹出窗口的时候,url后面加点随机参数,保证每次的url都不一样
      

  6.   

    你是说你改了页面代码但是模态窗体确没有反应吗?
    这个我遇到过 我告诉你吧!
    这个只要改一个ie的设置就可以工具->internet 选项->浏览历史记录->设置选择每次访问网页时