I'm working on a web application that will run on a kiosk and used via a touch screen interface. We're wanting to turn off the screen from an administrative page, so using Windows power management isn't an option as turning off the monitor has to be explicitly done.
Following the suggestion posted in this question, I was able to make an AJAX call to my controller and turn the monitor off. However, my AJAX request never receives a response because any code after SendMessage() is not executed and I am unsure as to why. This is venturing beyond my abilities with C#, so it could be something simple that I do not understand. Firebug shows the request hanging. I tried stepping through, but once SendMessage() is called, nothing else happens. I also tried turning on the monitor (while it's on) to see if perhaps I could step through, but the result was the same: after SendMessage(), nothing else executes.
So it is possible to do it via AJAX and receive a response?