using System;
using System.Web;
using System.Web.UI;

namespace MyLib
{
    
/**//// <summary>
    
/// 一些常用的Js调用
    
/// 创建时间:2007-8-23
    
/// </summary>

    public class Jscript
    
{        
               
        
/**//// <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)
        
{
            

        }
 
       

    }

}



先看上面那个,如果你没有吐血再接着看:

using System;
using System.Web;
using System.Web.UI;

namespace MyLib
{
    
/// <summary>
    
/// 一些常用的Js调用
    
/// </summary>

    public class Jscript
    
{        
               
        
/// <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 on 2007-08-23 12:38  李佩亮  阅读(398)  评论(2编辑  收藏  举报