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

            }
     
  • 相关阅读:
    boost::asio发送与传输相关的几个函数,备忘
    当ASIO::ASYNC_READ与SOCKET的ASYNC_READ_SOME的区别
    boost::asio keepalive
    boost asio ——深入框架
    Boost.Asio和ACE之间关于Socket编程的比较
    OCP-1Z0-052-V8.02-15题
    JavaScript对象和数组
    Oracle 11g New 使用RMAN 增强功能
    Flex中集合的类型
    Flex中基于列表的一系列MX组件及相互关系
  • 原文地址:https://www.cnblogs.com/nianshi/p/876208.html
Copyright © 2011-2022 走看看