c# - Closed/disable/pause application in a certain time interval -


i have asp.net webform app.

i don't want users use whole app in weekend (from friday 6pm sunday 23:59:59pm everyweek)

what on friday put special asp.net file named "app_offline.htm" on root , whole app display content of "app_offline.htm" (which saying: "sorry, under maintenance, please check later") , delete file on sunday evening. that's totally inefficient.

is there anyway can put global rule or disable app (or display/redirect page something: "sorry, under maintenance, please check later" on time interval?

i use masterpage, pages under masterpage, can put rule on page_load event in masterpage there lot of pages not under masterpage , dont want go single 1 of them put rule on.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -