net中常用的JavaScript的调用类

   /// <summary>
    
/// 一些常用的Js调用
    
/// </summary>

    public class Js
    
{
        
/// <summary>
        
/// 弹出JavaScript小窗口
        
/// </summary>
        
/// <param name="js">窗口信息</param>

        public static void Alert(string message)
        
{
            

        }


        
/// <summary>
        
/// 弹出消息框并且转向到新的URL
        
/// </summary>
        
/// <param name="message">消息内容</param>
        
/// <param name="toURL">连接地址</param>

        public static void AlertAndRedirect(string message, string toURL)
        
{
            

        }


        
/// <summary>
        
/// 回到历史页面
        
/// </summary>
        
/// <param name="value">-1/1</param>

        public static void GoHistory(int value)
        
{
            

        }


        
/// <summary>
        
/// 关闭当前窗口
        
/// </summary>

        public static void CloseWindow()
        
{
            

        }


        
/// <summary>
        
/// 刷新父窗口
        
/// </summary>

        public static void RefreshParent(string url)
        
{
            

        }


        
/// <summary>
        
/// 刷新打开窗口
        
/// </summary>

        public static void RefreshOpener()
        
{
            

        }


        
/// <summary>
        
/// 打开指定大小的新窗体
        
/// </summary>
        
/// <param name="url">地址</param>
        
/// <param name="width"></param>
        
/// <param name="heigth"></param>
        
/// <param name="top">头位置</param>
        
/// <param name="left">左位置</param>

        public static void OpenWebFormSize(string url, int width, int heigth, int top, int left)
        
{
            

        }


        
/// <summary>
        
/// 转向Url制定的页面
        
/// </summary>
        
/// <param name="url">连接地址</param>

        public static void JavaScriptLocationHref(string url)
        
{
            

        }


        
/// <summary>
        
/// 打开指定大小位置的模式对话框
        
/// </summary>
        
/// <param name="webFormUrl">连接地址</param>
        
/// <param name="width"></param>
        
/// <param name="height"></param>
        
/// <param name="top">距离上位置</param>
        
/// <param name="left">距离左位置</param>

        public static void ShowModalDialogWindow(string webFormUrl, int width, int height, int top, int left)
        
{
            

        }


        
public static void ShowModalDialogWindow(string webFormUrl, string features)
        
{
            
string js = ShowModalDialogJavascript(webFormUrl, features);
            HttpContext.Current.Response.Write(js);
        }


        
public static string ShowModalDialogJavascript(string webFormUrl, string features)
        
{
            

        }
        

    }
posted @ 2009-03-08 13:21  ╰⑥月の雨╮  阅读(408)  评论(1编辑  收藏  举报