Friday, March 18, 2011

Open Page as New Window with Full Screen From Code Behind

Full Screen:

ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "test", "window.open('"+Test.aspx+"','1','');", true);

Set Width and Height:


ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "test", "window.open(Test.aspx?No=" + T1.Text.ToString() + "','1','height=800,width=900px');", true);

No comments:

Post a Comment