You can create a table in a database which will contain these column values as mentioned below.
So if the Admin has assigned her employee a task, just pass the required parameters for that table and set the status to one.
Table Can Contain Columns like...
Table Name : Tbl_DashBoardStatus
"Task Assigned"(Name of the Task),
"Task Assigned Date",
"EmpID", (This Column will act as a Foreign Key for this table. It will be the Primary key of the Employee Table)
"TaskStatus"(This is a Flag which can contains values like "Complete" and "Incomplete" or you can even store 1 for Incomplete and 0 for Complete)
Later, when the Employee Logs in just fetch the Employee ID and pass it as a Parameter to the Select Statement of your Stored Procedure and fetch the "Task Status" for that Employee... If you get value as 1 then Redirect the User to the DashBoard Page else let him go to the ViewTask Page or any other page where you want.
Brief Explanation -
Create a method which will fetch the Employee ID and pass it as a Parameter to a Stored Procedure..(Call this method in the Login Button Click Event) This Stored Procedure will give you the Task Status based on the Employee ID you have passed. If it is 1 then re-direct the User to the DashBoard Page else redirect him to another page wherever you want.
FEEL FREE TO ASK QUESTIONS IF YOU HAVE ANY DOUBT...
PLEASE MARK THE ANSWER As ACCEPTED IF IT HELPED YOU!!!
Keep Sharing **** Keep Caring
PLEASE MARK MY ANSWER AS ACCEPTED IF IT HELPED YOU!!!