public void AlertMsg(string msg, bool async)
{
string script = string.Format("alert('{0}'); ", msg);
RegisterClientScript(script, async);
 public void RegisterClientScript(string script, bool async)
{
if (async)
{
System.Web.UI.ScriptManager.RegisterStartupScript(this.Page, this.GetType(), Guid.NewGuid().ToString(), script, true);
}
else
{
this.Page.ClientScript.RegisterStartupScript(this.GetType(), Guid.NewGuid().ToString(), script, true);
}
}

最新文章

  1. javascript设计模式:策略模式
  2. Life
  3. preg_match()漏洞
  4. Docker学习笔记整理
  5. [自娱自乐] 3、超声波测距模块DIY笔记(三)
  6. emacs tutorial笔记
  7. 面向对象的ExtJS场景开发
  8. 第一百九十四天 how can I坚持
  9. HDU 5730 Shell Necklace cdq分治+FFT
  10. Java访问USB设备
  11. jq之简单表单验证
  12. bootstrap 智能表单 demo示例
  13. Undefined symbols for architecture xxx
  14. 浅谈 js 字符串 trim 方法之正则篇
  15. [HMLY]11.MVVM架构
  16. 利用yield关键字输出杨辉三角
  17. 【算法系列学习】[kuangbin带你飞]专题十二 基础DP1 C - Monkey and Banana
  18. EDK II代码实例之Variable
  19. 高效、易用、功能强大的 api 管理平台
  20. 处理数据库 Ora-00845: memory_traget not supported on this system 的错误

热门文章

  1. 《搭建DNS内外网的解析服务》RHEL6
  2. ADO.NET笔记——使用连接池
  3. ADO.NET笔记——SQL注入攻击
  4. 9种jQuery和css3图片动画特效代码演示
  5. GitHub for Windows离线安装的方法
  6. C# 编写Window服务基础(一)
  7. jquery 在ie10中post数据,最终数据丢失的BUG修复
  8. opencv初体验
  9. django 更新model
  10. 从零开始学ios开发(八):Autorotation and Autosizing