模式窗口
非常感谢这篇文章Make Modal Forms,原来一直头痛 模式窗口的问题 :)
在自己这边也纪录一下如下:
Ever try to create a pop-up in ASP.NET. but ASP.NET 1.0 and 1.1 didn’t come with a mechanism to support the concept of modal forms. In fact, many internet browsers lack built-in support for the concept of modal forms.
The modal form in IE is a little unusual. One way to overcome this weirdness involves placing the following statement in the header of the intended modal form:
<base target=”_self”>
用下面的代码还可以限制模式窗体的大小.
<script language="javascript">
dialogHeight = "300px"
dialogWidth = "440px"
</script>
<head>
<base target="_self">
</head>
在自己这边也纪录一下如下:
Ever try to create a pop-up in ASP.NET. but ASP.NET 1.0 and 1.1 didn’t come with a mechanism to support the concept of modal forms. In fact, many internet browsers lack built-in support for the concept of modal forms.
The modal form in IE is a little unusual. One way to overcome this weirdness involves placing the following statement in the header of the intended modal form:
<base target=”_self”>
用下面的代码还可以限制模式窗体的大小.
<script language="javascript">
dialogHeight = "300px"
dialogWidth = "440px"
</script>
<head>
<base target="_self">
</head>