How do I do partial update in multiple updatepanels with timer
-
Hi there I have multiple update panels and one timer on my page. But only one updatepanel has the trigger for the timer. What happens is all my update panel get refreshed. How do i make only one updatepanel that has timer control refreshed and not others? In this case, i don't want "updatepanel2" gets updated. Any help would be appreciated. thanks Muthu. Here is my code and page: =========================
protected void Page_Load(object sender, EventArgs e) { Label2.Text = "UpdatePanel2 refreshed at: " + DateTime.Now.ToLongTimeString(); } protected void Timer1_Tick(object sender, EventArgs e) { Label1.Text = "UpdatePanel1 refreshed at: " + DateTime.Now.ToLongTimeString(); }
-
Hi there I have multiple update panels and one timer on my page. But only one updatepanel has the trigger for the timer. What happens is all my update panel get refreshed. How do i make only one updatepanel that has timer control refreshed and not others? In this case, i don't want "updatepanel2" gets updated. Any help would be appreciated. thanks Muthu. Here is my code and page: =========================
protected void Page_Load(object sender, EventArgs e) { Label2.Text = "UpdatePanel2 refreshed at: " + DateTime.Now.ToLongTimeString(); } protected void Timer1_Tick(object sender, EventArgs e) { Label1.Text = "UpdatePanel1 refreshed at: " + DateTime.Now.ToLongTimeString(); }
kmuthuk wrote:
protected void Page_Load(object sender, EventArgs e) { Label2.Text = "UpdatePanel2 refreshed at: " + DateTime.Now.ToLongTimeString(); }
The code block says that you are updating the content on every Page_Load. You must understand the AJAX process. The updatepanel are used to bypass the Postback to asynchronous mode. So, it would not affect any of the Page Event Cycle of the ASP.NET page. For every Postback, all the Page events will fire especially Page_Load.
Castle Rider
What if I freeze??? Don't forget to breath...
My: Website | Yahoo Group | Blog Spot