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

Guy posted on July 05, 2007 :: 2595 views

This code sample contains an implementation of a VWG component that has a client side scripting file associated with it. The component enables to call client side java script from the server side code.

This sample simply calls a client side method from a button click event and raises the standard alert. I order to interact with the server side code from your client code you should raise a client side Visual WebGui event. Which in turn can update the UI according to the event.

Versions:

  • 1.0: First release.

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

# Rodnie
Hello, I have a project and I want to implement scripts, but it does not work. In which it leaves from the project I make reference to the MyScripts.js file. That type of Item I use to create the MyScripts.cs class?
Thanks .....


Posted by Rodnie on Wednesday, September 19, 2007 8:29 PM
# anupriya
we are opening your Demo App. It works fine.But if we creating a new Visual Web Gui Application and adding the requsite files , unable to display the javascript alert.

Are we missing something like while creating component ?


Thanks
Posted by anupriya on Saturday, May 02, 2009 7:35 AM
# shan1000
Make your Javascript file as 'embedded resource', right click on the .js file name and select Build action dropdown to select 'embedded resource'.
Posted by shan1000 on Wednesday, February 03, 2010 10:39 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