Timer in UpdatePanel

前端 未结 1 979
长发绾君心
长发绾君心 2020-11-30 12:50

I have an asp:UpdatePanel with an asp:Timer. These are in a Master/Content Page. The code is below:



        
1条回答
  •  野性不改
    2020-11-30 13:44

    Is there a specifc reason why you have the Timer control in the UpdatePanel?

    Every time I have needed to use a Timer control to cause an UpdatePanel refresh, I have set it up like the following and it works fine with MasterPages:

     
        
            
        
         
            
         
     
    
    
     
    

    Use the Trigger to cause the UpdatePanel to refresh from the Tick event. You only want to embed content in your UpdatePanel if possible.

    0 讨论(0)
提交回复
热议问题