Can we use SendKeys in ASP.NET?

EnigmaNet

New member
Joined
Feb 5, 2007
Messages
4
Programming Experience
Beginner
Hi,
I am developing an application in ASP.NET. I have used SendKeys statements in the code to send the keyboard input to the application. The problem what I am facing is, its throwing an error saying -"System.Security.SecurityException: Unable to create Hook."

The code is as follows-

System.Windows.Forms.SendKeys.SendWait("{tab}")
System.Threading.Thread.CurrentThread.Sleep(1 * 1000)

I have also included following import statement at the top
Imports
System.Windows.Forms

Please help.

 
If you are trying to alter the page client side, SendKeys will definitely not work.
Perhaps if you explain what you are trying to accomplish someone could find a solution.
 
Back
Top