In my project, all aspx files have to test on pageload whether system is on or off (by get value from a table in database). If system is on, the page will work as normal, for else redirect to system offline page.
By this way, I have to modify every pages in my project, i think it's not optimized
So, are there any way to do once for all pages from global.asax or any ways similar?
aspnetDev198...
Member
36 Points
28 Posts
Detect System Offline by Global.asax
Feb 25, 2012 02:50 AM|LINK
Hi everyone,
In my project, all aspx files have to test on pageload whether system is on or off (by get value from a table in database). If system is on, the page will work as normal, for else redirect to system offline page.
By this way, I have to modify every pages in my project, i think it's not optimized
So, are there any way to do once for all pages from global.asax or any ways similar?
I hope you will please to help me.
Thanks