ASP.NET Skills Drop (1): Using Client Scripts in ASP.NET

xiaoxiao2021-03-06  93

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. /// public class configuration {/// /// Open new window /// /// Request page // / URL /// to open, the name of the window to open public static void OpenWindowscript (Page Pg, String Url String windowName) {string scriptblock; scriptblock = "