Change Screen Resulotion
-
When change screen resulotion through code in asp.net with code then no probleam. After publish and run on localhost and change screen resulotion then show error: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. please tell me how solve this probleam.
-
When change screen resulotion through code in asp.net with code then no probleam. After publish and run on localhost and change screen resulotion then show error: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application. please tell me how solve this probleam.
Rinki Mukheraji wrote:
When change screen resulotion through code in asp.net with code then no probleam.
That only works in the special case where the server computer and the client computer is the same physical computer, i.e. you are browsing on the server to the same server, and when you are using the same user account for browsing that the server is using for running the server code, e.g. when you are running the site in Visual Studio. For any other sitation your code would try to change the resolution of the user interface on the server computer, not the client computer. As the web server application is running without a user interface, this is not possible.
Rinki Mukheraji wrote:
please tell me how solve this probleam.
Very simple: Don't try to change the screen resolution in a web application. It's not possible.
Despite everything, the person most likely to be fooling you next is yourself.