Visual Basic Improvements in Visual Studio 11: Listing 4.

Standard HTML to call JavaScript on a button click.

<body onload="start()">
  <h1>JavaScript and Visual Basic Demo</h1>
  <br />
  <button value="Click Here" name="btn" 
    onclick="VBMetroLibrary()" 
    type="button">Click Here to see messages</button>
  <p></p>
    
    <h2><div id="div1">Message 1 Goes Here</div></h2>
  <p></p>
    <h2><div id="div2">Message 2 Goes Here</div></h2>
</body>

About the Author

Joe Kunk is a Microsoft MVP in Visual Basic, three-time president of the Greater Lansing User Group for .NET, and developer for Dart Container Corporation of Mason, Michigan. He's been developing software for over 30 years and has worked in the education, government, financial and manufacturing industries. Kunk's co-authored the book "Professional DevExpress ASP.NET Controls" (Wrox Programmer to Programmer, 2009). He can be reached via email at [email protected].

comments powered by Disqus

Featured

Subscribe on YouTube