摘要:        
原文地址:http://www.cnblogs.com/carekee/articles/1740124.html因为用的是Ajax的ScriptManager+ UpdatePanel控件所以调用Response.Write(),Page.RegisterStartScript()等方法,就不行了需要调用Ajax本身的ScriptManager.RegisterStartupScript()方法;具体格式为:System.Web.UI.ScriptManager.RegisterStartupScript(Controlcontrol,Typetype,stringkey,stringscr    阅读全文
posted @ 2011-12-28 13:37
xidongs
阅读(1153)
评论(0)
推荐(0)
        
            
        
        
摘要:        
usingSystem.Web;publicclassJScript{///<summary>///弹出JavaScript小窗口///</summary>publicstaticvoidAlert(stringmessage){stringjs="<scriptlanguage='JavaScript'>alert('{0}');history.go(-1);</script>";HttpContext.Current.Response.Write(string.Format(js,messa    阅读全文
posted @ 2011-12-28 13:22
xidongs
阅读(476)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号