在新窗口中打开页面 的asp.net后台代码

public static void OpenWindowInNewPage(Page curPage, string destUrl)
    {
        string scriptString = string.Format("<script language='JavaScript'>window.open('" + "{0}" + "','" + "','toolbar=no,menubar=no,status=yes,location=no, resizable=yes,scrollbars=no');<", destUrl);
        scriptString += "/";
        scriptString += "script>";
        if (!curPage.IsStartupScriptRegistered("Startup"))
        {
            curPage.RegisterStartupScript("Startup", scriptString);
        }
    }
posted @   洗碗心得  阅读(1604)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示