0

Hi, i was trying to use timer in asp.net. The purpose is like this, there will be a server(ASP.NET) and a client(Web Application).

I was trying to implement a timer in the client so that, for a specified period of time say 10 seconds, a function has to be called in the server side.

I used the below approach for this.

System.Threading.Timer objtimer = new System.Threading.Timer(new TimerCallback(this.samplefunction), "", 0, 3000);

"samplefunction" user defined function for calling a sample text box.

but i don't know how to implement it in asp.net. so that i can call a function/method for a specific interval of time.

The main scenario is that i am trying to develop a server, in that server if i subscribe a value, that value will be returned from the server for a user defined time interval.

Kindly help me regarding this issue.
Thanks in advance.

2
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by senthilkumar24
0

I don't think there is a way to do this using standard asp.net controls. You need to use client side javascript or ajax approach.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.