timer control in ajax
-
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.
-
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.
Yes. In Update Panel there is a properites Called
"Update Mode"
. Bydefault it is,Always
. You need to make themConditional
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.
-
Yes. In Update Panel there is a properites Called
"Update Mode"
. Bydefault it is,Always
. You need to make themConditional
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.
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.
-
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.
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
-
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
thank you sir. It is working fine.
-
thank you sir. It is working fine.
Welcome man !!
Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.