Wednesday, March 10, 2010

Window.open in code behind C#

Window.open in code behind C#

        winFeatures = "toolbar=no,status=no,menubar=no,location=center,scrollbars=no,resizable=no,height=500,width=657";
         ClientScript.RegisterStartupScript(this.GetType(), "newWindow", String.Format("<script>window.open('{0}');</script>", ("URL"), winFeatures));

No comments: