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