Hi,
I need to suspend access to viewing a web page between 13:30 and 14:30 every day, displaying an alert with update in progress notice, using asp.net c#
I have tried this code without success... don't have error...
protected void Page_Load(object sender, EventArgs e)
{
if (DateTime.Now.Hour > 13.30 && DateTime.Now.Hour < 14.30)
{
Response.Redirect("Maintenance.aspx");
}
}
Any suggestion please?