2011-10-28 30 views

答えて

0

試してください:あなたはサイズ等を指定するには、openメソッドにオプションのリストを渡すことができ

ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("<script>window.open('{0}', 'mywin', 'left=25, top=25, width=500, height=500');</script>", "/PopupPages/EmailPage.aspx")); 
3

は、例えば、このmsdn article.

window.open([url], null, [options]); 

参照してください:

window.open("myURl.aspx", null, "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no"); 
0

私はここにいるのです

ClientScript.RegisterStartupScript(this.GetType(), "newWindow", "<script>window.open('/PopupPages/EmailPage.aspx', '', 'top=100,left=300,menubar=no,toolbar=no,location=no,resizable=no,height=750,width=850,status=no,scrollbars=no,maximize=null,resizable=0,titlebar=no');</script>"); 
0

仕事これは私がやったことです:

ScriptManager.RegisterStartupScript(Page, typeof(Page), "OpenWindow", "window.open('Details.aspx','mywindow','menubar=1,resizable=1,width=900,height=600');", true); 
関連する問題