模态窗口只能加载一次吗? 我刚才刚做了个用户修改密码的模态窗口~第一次加载有的~关闭当前模态窗口后~在进入发现不会加载了~!怎么会事,问题稍基础,见笑了~! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 登陆: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>"); 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>"); 就是弹出一个摸太窗口: 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>"); 模式窗口的页面里面的Page_laod里面写Response.Expires=-100 模态窗口都有缓存的在弹出窗口的时候,url后面加点随机参数,保证每次的url都不一样 你是说你改了页面代码但是模态窗体确没有反应吗?这个我遇到过 我告诉你吧!这个只要改一个ie的设置就可以工具->internet 选项->浏览历史记录->设置选择每次访问网页时 string strConn = @ 中的@放在前面代表什么? treeview控件,每个节点能不能自己写样式啊 关于DetailsView控件中RadioButtonList数据绑定问题 在Global.asax里定时在根目录生成一文件,本机测试完全正常,上传服务器后没反应~~~~ 用过数字中国asp.net空间的进来看看 Session的用法 dnn内模块汉化问题 关于短信编码的转换,能帮得上忙得请进 静态页的问题? 使用DataSet对象访问XML数据出问题? 什么是强类型系统? 考试系统 上网检测
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>");
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>");
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>");
Response.Expires=-100
在弹出窗口的时候,url后面加点随机参数,保证每次的url都不一样
这个我遇到过 我告诉你吧!
这个只要改一个ie的设置就可以工具->internet 选项->浏览历史记录->设置选择每次访问网页时