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

ajax的使用

时间:2014-12-16 09:53:06      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:ar   使用   sp   on   art   bs   tt   nbsp   res   

    // ScriptManager.RegisterStartupScript(UpdatePanel1, typeof(UpdatePanel), "scriptname", "<script>alert(‘2‘);</script>", false);
            ScriptManager.RegisterStartupScript(UpdatePanel1, typeof(UpdatePanel), "scriptname", "alert(‘2‘);",true);

 

ajax的button的click中不能用response.write("<script>alert(‘1‘);</script>");而用以上两种,true是不带脚本的,false带脚本的

ajax的使用

标签:ar   使用   sp   on   art   bs   tt   nbsp   res   

原文地址:http://www.cnblogs.com/ChineseMoonGod/p/4166398.html

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