zoukankan      html  css  js  c++  java
  • alert

    public static class PageHelper
        {
            
    public static void Alert(Page objPage, string message)
            {
                
    string key = "AlertMessage";
                
    string script = string.Format("alert('{0}')", message);
                objPage.ClientScript.RegisterStartupScript(
    typeof(Page), key, script, true);
            }

            
    public static void Alert(Page objPage, string message, string url)
            {
                
    string key = "AlertMessage";
                
    string script = String.Format("alert('{0}');window.location='{1}';", message, url);
                objPage.ClientScript.RegisterStartupScript(
    typeof(Page), key, script, true);
            }
        }
  • 相关阅读:
    Android List 排序
    Android Connection refused
    动态代理
    Java内存模型
    面试题整理
    检查结果
    单例模式
    2019年面试记录
    面试题目
    滑动窗口的最大值
  • 原文地址:https://www.cnblogs.com/mayanshuang/p/2036080.html
Copyright © 2011-2022 走看看