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. timer control in ajax

timer control in ajax

Scheduled Pinned Locked Moved ASP.NET
announcement
6 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.
  • S Offline
    S Offline
    souravghosh18
    wrote on last edited by
    #1

    I am using a timer control in one of my page. and that page contains 2 update panels.can i associate the timer control with a particular update panel of that page. because the timer refreshes the 2 update panels in every TICK event.

    A 1 Reply Last reply
    0
    • S souravghosh18

      I am using a timer control in one of my page. and that page contains 2 update panels.can i associate the timer control with a particular update panel of that page. because the timer refreshes the 2 update panels in every TICK event.

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Yes. In Update Panel there is a properites Called "Update Mode" . Bydefault it is, Always. You need to make them Conditional for both of the UpdatePanel. Now In Timer Tick Event, You can call the Update() Methods of particular Update Panel. Like say, UpdatePanel1.Update(). Hope This Answer your questions. :) Thanks !

      Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

      S 1 Reply Last reply
      0
      • A Abhijit Jana

        Yes. In Update Panel there is a properites Called "Update Mode" . Bydefault it is, Always. You need to make them Conditional for both of the UpdatePanel. Now In Timer Tick Event, You can call the Update() Methods of particular Update Panel. Like say, UpdatePanel1.Update(). Hope This Answer your questions. :) Thanks !

        Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

        S Offline
        S Offline
        souravghosh18
        wrote on last edited by
        #3

        thanx for ur reply Mr. Jana, It matches with my situation.But I got an error "Invalid postback or call back argument.plz check <%@ Page EnableEventValidation="true" %> " when 2nd update panel (not the timer one) is refreshes. I am using the update panels in master page.where I can't find <%@ Page %>. Is there any alternative way to handle this.

        A 1 Reply Last reply
        0
        • S souravghosh18

          thanx for ur reply Mr. Jana, It matches with my situation.But I got an error "Invalid postback or call back argument.plz check <%@ Page EnableEventValidation="true" %> " when 2nd update panel (not the timer one) is refreshes. I am using the update panels in master page.where I can't find <%@ Page %>. Is there any alternative way to handle this.

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          souravghosh18 wrote:

          Invalid postback or call back argument.plz check <%@ Page EnableEventValidation="true" %> "

          Please update the web.config section using :

          pages validateRequest="false" enableEventValidation="false"

          Please read this thread http://forums.asp.net/p/922994/1064482.aspx[^] Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          modified on Friday, April 30, 2010 4:54 AM

          -- Modified Friday, April 30, 2010 4:54 AM

          S 1 Reply Last reply
          0
          • A Abhijit Jana

            souravghosh18 wrote:

            Invalid postback or call back argument.plz check <%@ Page EnableEventValidation="true" %> "

            Please update the web.config section using :

            pages validateRequest="false" enableEventValidation="false"

            Please read this thread http://forums.asp.net/p/922994/1064482.aspx[^] Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

            modified on Friday, April 30, 2010 4:54 AM

            -- Modified Friday, April 30, 2010 4:54 AM

            S Offline
            S Offline
            souravghosh18
            wrote on last edited by
            #5

            thank you sir. It is working fine.

            A 1 Reply Last reply
            0
            • S souravghosh18

              thank you sir. It is working fine.

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #6

              Welcome man !!

              Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

              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