zoukankan      html  css  js  c++  java
  • 打开指定大小的模式窗体

    public static void ShowModalDialogWindow(string webFormUrl, int width, int height, int top, int left)
            
    {
                
    #region
                
    string features = "dialogWidth:" + width.ToString() + "px"
                    
    + ";dialogHeight:" + height.ToString() + "px"
                    
    + ";dialogLeft:" + left.ToString() + "px"
                    
    + ";dialogTop:" + top.ToString() + "px"
                    
    + ";center:yes;help=no;resizable:no;status:no;scroll=yes";
                ShowModalDialogWindow(webFormUrl, features);
                
    #endregion

            }

    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)
            
    {
                
    #region
                
    string js = @"<script language=javascript>                            
                                showModalDialog('
    " + webFormUrl + "','','" + features + "');</script>";
                
    return js;
                
    #endregion

            }
     
  • 相关阅读:
    Linux上传下载文件(rz/sz)
    注册页面(函数调用,数组,对象,for,innerHTML)
    课程表(点击事件,for)
    winform中固定界面大小的方法
    VS常用快捷键
    Python的标准输出
    Spring注解驱动第二讲--@ComponentScan扫描介绍
    Spring注解驱动第一讲--Spring环境搭建
    通用目标检测
    通用目标检测-发展趋势
  • 原文地址:https://www.cnblogs.com/nianshi/p/876208.html
Copyright © 2011-2022 走看看