Programming/ASP.NET
팝업창 열기
홍상길
2010. 4. 27. 14:11
StringBuilder strBuilder = new StringBuilder();
strBuilder.Append("w=810;h=620;");
strBuilder.Append("x=Math.floor( (screen.availWidth-(w+12))/2 );y=Math.floor( (screen.availHeight-(h+30))/2 );");
strBuilder.Append("window.open('Trade_Download.aspx', '',");
strBuilder.Append("'height='+h+',width='+w+',top='+y+',left='+x+',scrollbars=no,resizable=no');");
ScriptManager.RegisterStartupScript(this, this.GetType(), "PopupScript", strBuilder.ToString(), true);
닫기
self.close()