#Region " Windows Form Designer generated code " Public Sub New() MyBase.New() Me.MaximizeBox = False FormBorderStyle = FormBorderStyle.SizableToolWindow 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 主要是FormBorderStyle = FormBorderStyle.SizableToolWindow这句化 在winform中是这样。 在web中 <script language="javascript"> function opencontent(url) { ContentWindow=window.open(url,"_blank","width=640,height=500,directories=no,status=yes,scrollbars=yes,resize=yes,menubar=no,top=0,left=100") } </script> 然后用 DataNavigateUrlFormatString="javascript:opencontent('')"
那就不要用窗口嘛,用<div>楼上你的好有意思哦,HOHO
只有先全屏了,再回缩到你要的大小,不过到时候界面上会有一闪. 呵呵,还有一个东东就是用popup <SCRIPT LANGUAGE="JScript"> var oPopup = window.createPopup(); var oPopupBody = oPopup.document.body; oPopupBody.innerHTML = "Display some <B>HTML</B> here."; oPopup.show(100, 100, 200, 50, document.body); </SCRIPT>
晕~~
没用我问这干什么
郁闷
可以告诉你非常有用啊
看你态度不好 不告诉什么情况下用
MyBase.New()
Me.MaximizeBox = False FormBorderStyle = FormBorderStyle.SizableToolWindow
'This call is required by the Windows Form Designer.
InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub
主要是FormBorderStyle = FormBorderStyle.SizableToolWindow这句化
在winform中是这样。
在web中
<script language="javascript">
function opencontent(url)
{
ContentWindow=window.open(url,"_blank","width=640,height=500,directories=no,status=yes,scrollbars=yes,resize=yes,menubar=no,top=0,left=100")
}
</script>
然后用
DataNavigateUrlFormatString="javascript:opencontent('')"
呵呵,还有一个东东就是用popup
<SCRIPT LANGUAGE="JScript">
var oPopup = window.createPopup();
var oPopupBody = oPopup.document.body; oPopupBody.innerHTML = "Display some <B>HTML</B> here.";
oPopup.show(100, 100, 200, 50, document.body);
</SCRIPT>
你的方法似乎不适合于asp.net web页面吧
回复chinahuman(铁匠)
我用popup显示一个层
在这个div里显示另一个页面的整个页面
应该怎么写