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

Posted on 2009-03-04 20:25  ymss  阅读(623)  评论(0)    收藏  举报

 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

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3