关于打开模式窗体,不刷新的问题
解决步骤:
1、html页面部分:
<base target="_self"></base>
<script type="text/javascript">
window.name = "Base_photo_create";
</script>
<form id="form1" runat="server" target="Base_photo_create">
<script type="text/javascript">
window.name = "Base_photo_create";
</script>
<form id="form1" runat="server" target="Base_photo_create">
2、CS页面部分:
protected void Page_Load(object sender, EventArgs e)
{
this.Response.Expires = -1;
}
{
this.Response.Expires = -1;
}
3、javascript调用部分:
var retValue = showModalDialog(url, "Base_photo_create", "status:no;scroll:no;center:yes;help:no;dialogWidth:450px;dialogHeight:320px;");
if(retValue != null && typeof(retValue) != "undefind")
{
//处理代码
}
if(retValue != null && typeof(retValue) != "undefind")
{
//处理代码
}