In the event of a site lock-down... let's say for certain upgrade ormaintenance procedures... where i dont want user to have access to theentire website... not just the homepage... how would go about doingthis?
I thought that i should use the .config file to achieve this... but not sure how to go about.
Any suggestions would be greatly appreciated
thanks
Assuming you are using a database along with your site I suggest making a tbl for misc proceedures that you can modify on the fly.
Something along the lines of
tblSiteStatus
nvarchar: option
int: status
For this the first row would be:
option: SiteStatus
status: 1(on) or 0 (off )
Then throw a read on each page or create a control and drop it on each page to read from the database to make sure that the status = 1, if it doesnt = 1 do a Response.Redirect to a maintainence.aspx page.
Thanks for the reply Lucid.
Yea i had that in mind too.
But im sure there is a better less resource intensive way of going about this.
Let see if anybody else can shine some more light on that config file...
Thanks again
0 comments:
Post a Comment