I am working on a security component of an asp.net application. Part of the security process is to activate the screensaver after 10 minutes of idle time.
Is there a way to activate screensaver using a web app? I have searched SO & GOOD but no luck. Any ideas?
"You are holding it wrong". This is so wrong on multiple levels. You are trying to do security by obscurity, which is bound to fail.
First, there's no way you can control this from your web site. Javascript or not. Clients may have javascript blockers installed.
A Windows machine that have a screen saver that adheres to Group Policies will laugh at your attempts. An how about Mac? iOS? Android?
The proper way to do it is to protect the data by timing out the user session and redirect the user to a logoff page.
There's an sample on the MSDN Code samples site to get you started: Alert user session expire (AspNetAlertSessionExpire)