Brockmann: "Creating Rich Web
Applications Gets a Ton Easier"

e-grou chooses Visual WebGui
over standard ASP.NET

Quick migration of VB 6.0
Applications to the Web

Fully functional software versions
for 30 days evaluation period

Download the free edition of the
Visual WebGui Studio
 

Code Snippets

itzik.spitzen posted on February 05, 2008 :: 5127 views

The following sample application shows how to use the "WScript.shell" ActiveX object in order to interact with the client machine and some more.

In the project you will see a custom control named Shell which is represented by a server side cs file and a js client
file.

Within the client js file you will see 4 action methods:

1. Shell_Init - initializes the ActiveX object.
2. Shell_Run - execute an executable on the client machine
3. Shell_PlaySound - play a sound using <Object> tag and an internal media player
    (does not use the WScript.shell)
4. Shell_SendKeys - simulate key press.

And 3 post occurrence methods which are invoked in order to raise an event back to the server to enable handling
the action Finish event on server side scripting.

Download Code

Note: Codes are submitted as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Terms of Agreement:
By using this code, you agree to the following terms...

  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame.
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Post Rating

Comments

# jx_boi
Hi,

I got this error while running the application. any idea?

Server Error in '/' Application.
--------------------------------------------------------------------------------

Could not find the requested resource.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: Could not find the requested resource.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[Exception: Could not find the requested resource.]
Gizmox.WebGUI.Server.Preload.ProcessRequest(HttpContext objHttpContext) +969
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
Posted by jx_boi on Tuesday, October 13, 2009 10:25 PM
# itzik.spitzen
Hi,

It seems like you should make sure that the referenced Gizmox dlls are copied locally.

I would appreciate it if you can move this conversation to the forums; this way you can receive a faster response and other community members will benefit from it as well.

Thanks,
Itzik
Posted by itzik.spitzen on Thursday, October 15, 2009 7:05 AM

Post Comment

Only registered users may post comments.
Most promising startups
Top 3 most promising startups in 2009
   AJAX Framework | Web Development | Cloud applications | RIA Development | Silverlight Applications | Legacy Migration
The most popular open source Ajax applications framework for enterprises | Sitemap | Terms Of Use | Privacy Statement
Copyright © 2005-2009 Visual WebGui®    Design By: Template World
   
Visual Studio Partners