1using System;
2using System.Web;
3using System.Web.UI;
4
5/// <summary>
6/// 公共类:常用的JS调用
7/// 开发:王洪剑
8/// 开发时间:2009-8-31
9/// 修改时间:2009-8-31
10/// </summary>
11public static class Jscript
12{
13
14 /// <summary>
15 /// 向窗体注册脚本(RegisterStartupScript)
16 /// </summary>
17 /// <param name="strJs">JS代码,无script</param>
18 public static void Js(string strJs)
19 {
20
24 }
25
26 /// <summary>
27 /// 跳转到指定URL
28 /// </summary>
29 /// <param name="url">URL</param>
30 public static void LocationToUrl(string url)
31 {
32
37 }
38
39 /// <summary>
40 /// 弹出alert消息
41 /// </summary>
42 /// <param name="js">消息</param>
43 public static void Alert(string js)
44 {
45
50 }
51
52 /// <summary>
53 /// 弹出alert消息,跳转到指定URL
54 /// </summary>
55 /// <param name="js">消息</param>
56 /// <param name="url">url</param>
57 public static void AlertToUrl(string js, string url)
58 {
59
64 }
65}
66
2using System.Web;
3using System.Web.UI;
4
5/// <summary>
6/// 公共类:常用的JS调用
7/// 开发:王洪剑
8/// 开发时间:2009-8-31
9/// 修改时间:2009-8-31
10/// </summary>
11public static class Jscript
12{
13
14 /// <summary>
15 /// 向窗体注册脚本(RegisterStartupScript)
16 /// </summary>
17 /// <param name="strJs">JS代码,无script</param>
18 public static void Js(string strJs)
19 {
20
24 }
25
26 /// <summary>
27 /// 跳转到指定URL
28 /// </summary>
29 /// <param name="url">URL</param>
30 public static void LocationToUrl(string url)
31 {
32
37 }
38
39 /// <summary>
40 /// 弹出alert消息
41 /// </summary>
42 /// <param name="js">消息</param>
43 public static void Alert(string js)
44 {
45
50 }
51
52 /// <summary>
53 /// 弹出alert消息,跳转到指定URL
54 /// </summary>
55 /// <param name="js">消息</param>
56 /// <param name="url">url</param>
57 public static void AlertToUrl(string js, string url)
58 {
59
64 }
65}
66