Its very weird approach to check if user is idle for 10 minutes, rather than use session timeout and then redirect to corresponding page.
Open the Web.config file and set the Session Timeout to 10 minutes like:
<system.web>
<sessionState mode="InProc" timeout="10"/>
</system.web>
Details:
C# Corner : Redirect Page After Session Time Out[
^]