zoukankan      html  css  js  c++  java
  • 在当前页面弹出对话框

    /// <summary>
        /// 在当前页面弹出提示框
        /// </summary>
        /// <param name="page"></param>
        /// <param name="o"></param>
        /// <param name="strText"></param>
        public static void ShowMessageBox(Page page,string strText)
        {
            strText = strText.Replace("'", "").Replace(";", "").Replace("<", "").Replace(">", "").Trim();
            page.ClientScript.RegisterStartupScript(page.GetType(), "", "<script>alert('" + strText + "');</script>");
        } 
  • 相关阅读:
    Facade
    Adapter
    Bridge
    Factory
    Singleton
    Decorator
    Template Method
    设计模式
    寻找最小的k个数
    java并发编程(4)--线程池的使用
  • 原文地址:https://www.cnblogs.com/VirtualMJ/p/515410.html
Copyright © 2011-2022 走看看