在使用AJAX控件,弹出alert提示框

来源:互联网 发布:路亚竿淘宝 编辑:程序博客网 时间:2024/05/01 14:15

 

 ScriptManager.RegisterClientScriptBlock(UpdatePanel3, typeof(UpdatePanel), "test", "alert('在籍学生信息表中不存在该班号!');", true);

 

参数

control
类型:System.Web.UI..::.Control

正在注册该客户端脚本块的控件。

type
类型:System..::.Type

该客户端脚本块的类型。通常使用 typeof 运算符 (C#) 或 GetType 运算符 (Visual Basic) 来指定该参数,以检索正在注册该脚本的控件的类型。

key
类型:System..::.String

该脚本块的唯一标识符。

script
类型:System..::.String

脚本。

addScriptTags
类型:System..::.Boolean

如果用 " sdata="langKeyword"></script> 标记括起该脚本块,则为 true;否则为 false

原创粉丝点击