1. Home
  2. Computing & Technology
  3. Visual Basic

ASP.NET - Learn Programming for the Networked World - Part 4

By , About.com Guide

4 of 8

Evaluating the Results of the First Test Run

The Web User Control on the Main Form

The Web User Control on the Main Form

When you consider the radical differences between a stand-alone application and a web based client server application, the fact that you can cut and paste this code with no syntax differences - those "wavy green underscores" - is a refreshing testament to how much Microsoft has been able to program around those differences with ASP.NET. But that doesn't mean that everything is going to run now. There ARE some differences that we'll have to fix in code.

Before we do a trial run and see what they are, there's one final task.

Recall that we're developing a Web User Control. Our web calculator doesn't stand on it's own. It has to be part of another web page. So drag and drop your calculator component from Solution Explorer onto the main web form - it has the ".aspx" file identifier. Visual Studio doesn't have a "WYSIWYG" display here yet so the calculator just appears as a plain box in the main form until you actually run it.

Now, click the "run" icon, press F5, or select Start from the Debug menu and, Ta Da!, your form should appear in all it's glory running in a browser on your "localhost" server (or even your web hosting service if that's the way you're working). And we still haven't changed a line of code in our VB.NET version.

Explore Visual Basic
By Category
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Visual Basic
  4. Learn VB.NET
  5. Learn ASP.NET
  6. ASP.NET - Learn Programming for the Networked World - Part 4

©2009 About.com, a part of The New York Times Company.

All rights reserved.