We often need to use client scripts in ASP.NET, using client scripts in ASP.NET, easy to use the registerclientscriptblock method of Page. Here is a C # code I wrote, used to open a new window: use system; use system.Web.ui;
A summary description of Namespace mybill {/// /// configuration. /// summary> public class configuration {/// /// Open new window /// summary> /// Request page param> // / URL param> /// to open, the name of the window to open param> public static void OpenWindowscript (Page Pg, String Url String windowName) {string scriptblock; scriptblock = "