标签: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 }
至于为什么,还不太清楚,先这么用着,挖个小坑!!!
标签:manager his panel 程序 pre 问题: 解决 style date
原文地址:http://www.cnblogs.com/Doumiao/p/6337022.html