Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How do I do partial update in multiple updatepanels with timer

How do I do partial update in multiple updatepanels with timer

Scheduled Pinned Locked Moved ASP.NET
questiondatabasehelpannouncement
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kmuthuk
    wrote on last edited by
    #1

    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(); }

    V 1 Reply Last reply
    0
    • K kmuthuk

      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(); }

      V Offline
      V Offline
      Venkatesh Mookkan
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups