码迷,mamicode.com
首页 > Web开发 > 详细

关于Ajax后台服务程序

时间:2017-01-21 15:02:27      阅读:281      评论:0      收藏:0      [点我收藏+]

标签:manager   his   panel   程序   pre   问题:   解决   style   date   

问题:

1     public void Alert(string msg)
2     {
3         ClientScript.RegisterStartupScript(this.GetType(), null, "alert(‘" + msg + "‘)", true);
4         //前端不会显示警告信息
5     }

解决方法:

1     public void Alert(string msg)
2     {
3         //ClientScript.RegisterStartupScript(this.GetType(), null, "alert(‘" + msg + "‘)", true);
4       //修改为  
5         ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "", "alert(‘!‘);", true);
6     }

至于为什么,还不太清楚,先这么用着,挖个小坑!!!

关于Ajax后台服务程序

标签:manager   his   panel   程序   pre   问题:   解决   style   date   

原文地址:http://www.cnblogs.com/Doumiao/p/6337022.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!