1this.Page.ClientScript.RegisterStartupScript(this.GetType(), "myScript", "<script language=JavaScript>window.print();</script>");