Furqan Misarwala
Furqan Misarwala

Reputation: 1891

Synchronize count down time for all users

I need to synchronize the count down time for all users. So it will display identical remaining time to all in asp.net.

Upvotes: 0

Views: 276

Answers (1)

bgs264
bgs264

Reputation: 4642

What is the count down time?

In general to show the same information to all users you'd use something in an Application level variable which works the same way as ViewState("") or Session("") but is common to all users of an application.

e.g.

Application("CountdownRemaining") = Now.AddHours(1)

All users now have access to the same information in Application("CountdownRemaining").

As you've tagged ASP.NET I assume you want some information on a web page, so why not have something in a Master Page which queries an Application variable?

Upvotes: 2

Related Questions