用到ajax的页面后台输出一段文字

来源:互联网 发布:ubuntu上安装输入法 编辑:程序博客网 时间:2024/04/30 10:27

ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "", "", false) 


ScriptManager.RegisterStartupScript(this.labstatus,this.GetType(), "alertScript12", "alert('请先填写状态值')", true);

 

第一个参数为 任意的一个前台控件名

第二个参数为 ajax的传值类型

第三个参数为 或者是用来区分后台存在是否重复

第四个参数为 要输出的前台文字(或者前台的方法名字)<script>

第五个参数为 返回类型为true前台是否 需要 输入 <script></script>