How to Set Login and Logout Time In C#
- Set Login Time Period Using - C#
- C# Set Login Time and Logout Time Period
- How to Set Login and Logout Time In c# | Microsoft ASP Solutions
- Check Time to login window in C#
- How to check and auto logout time over in C#
- How to Check Scheduled login and logout time in ASP.NET
- How To Capture Login And Logout Time In C#.net
- how to get difference between login and logout time in c#
CS Page Code Below
protected void btnlogin_Click(object sender, EventArgs e)
{
DateTime someTime = DateTime.Now;
TimeSpan startTime = new TimeSpan(14, 0, 0);
TimeSpan endTime = new TimeSpan(18, 44, 0);
if(someTime.TimeOfDay >= startTime)
{
if(someTime.TimeOfDay <= endTime)
{
Response.Write("Login Succesfull");
}
else
{
Response.Write("Please Try After 3:30");
}
}
else
{
Response.Write("Please Try After 3:30");
}
}
No comments