how to develop time based application
ex:this app open in evng 4pm closeing time 4am automaticalley how to develop this app
next day automatically open evng 4pm closing time 4am plz give me ans plz
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
vinay kumarPosted Aug 28, 2012, 7:02 AM
Hi Narender Good Evening
as in my view this can be achieved in two ways
Before That First u Create a page(Error Display Page) which displays "Ur Site timings"
1 case
in startup page (home)
U accesses system time and compare your requirement timings
If it is ok then u writes response.Redirct ("Ur Next Page");
In case the time limit is exceeded ok then u writes response.Redirct ("Error Display Page");
2nd case
Create a htm page with name "app_offline.htm"
There are many ways of putting your ASP.NET website offline but the fastest way is to just drop a file named app_offline.htm on the site's root.
For Any reference just see the Below Link
http://www.codeproject.com/Articles/228823/Best-way-to-put-your-ASP-net-site-offline
Regards
P.Vinay Kumar