Professional Documents
Culture Documents
OVERVIEW............................................................. ....................1
With Visual Studio .NET, programming tasks that were once complex, time-
consuming, and frustrating, are demystified to the millions of professional and
casual programmers worldwide. More importantly, Visual Studio .NET enables
developers to address programming challenges using the skills and knowledge they
already possess.
Throughout this guided tour, you will discover how easy it is to create
comprehensive, enterprise-critical solutions with Visual Studio .NET. The tour will
focus on building and integrating the three key components that comprise
Microsoft’s next-generation .NET platform: a sweeping array of client experiences,
server-based software components, and XML Web services.
The scenario for the guided tour highlights a fictitious bicycle manufacturer –
Downhill Bikes. Using Visual Studio .NET, you will enable Downhill Bikes to take
advantage of XML Web services to improve their overall customer service and daily
operations.
The Visual Studio .NET Guided Tour will cover the following areas:
Installation Notes
To run this Guided Tour, you must install Microsoft Windows® 2000 or Windows XP
released products with IIS installed, Visual Studio .NET RTM version, Microsoft SQL
Server™ 2000, and the Downhill Bikes sample application. The Downhill Bikes
sample also will install the Microsoft Mobile Internet Toolkit and the Mobile Emulator.
This demo has been tested only on Windows 2000 and Windows XP Professional.
For instructions on installing Visual Studio .NET, please refer to the Appendix and/or
the Readme file on CD 1 of Visual Studio .NET. For up-to-date information please
refer to this Web site: http://msdn.microsoft.com/
Setup Instructions
To install Visual Studio .NET, please refer to the Readme file on CD 1 of Visual
Studio .NET or see the instructions in Appendix A.
Note: For this Guided Tour to function properly, you must be using Visual Studio
.NET. You must have SQL Server 2000 installed and running. The demo is setup for
you to be logged on as Administrator. If you are not logged on as Administrator; you
need to be in the Administrator group. Make sure you have IIS and SQL Server
2000 running before you begin setup.
24
DOWNHILL BIKES – A
QUICK TOUR
Now is a good time to do a basic test of the Web site with the following link to
make sure Downhill Bikes is working. If the main page appears, you are ready
to begin.
http://localhost/Downhillbikes/
Welcome to the Visual Studio .NET Guided Tour. This tour will cover the
three key areas of the .NET developer experience: client applications,
server applications, and XML Web services.
Let’s start off by walking through the Downhill Bikes Web site as it stands
today, by browsing the catalog, placing items in the shopping cart, and
then placing an order. The Guided Tour will then step us through the
addition of new client, server, and services features, using Visual Studio
.NET.
24
PART 0: QUICK TOUR OF THE SITE
Step 1 of 4: Browse the catalog
Click here to open DownhillBikes in Internet Explorer.
b. Use the drop-down list box to browse the four categories in the Downhill Bikes
catalog.
24
PART 0: QUICK TOUR OF THE SITE
Step 2 of 4: Add to cart
a. Click the add to cart button.
24
PART 0: QUICK TOUR OF THE SITE
Step 3 of 4: Checkout
a. Click checkout.
b. Click sign in to authenticate onto the Downhill Bikes Web site.
24
PART 0: QUICK TOUR OF THE SITE
Step 4 of 4: Confirm the order
a. Click place order to confirm the order.
b. After placing the order, you should see the order confirmation page.
Summary
You have just completed a walk through for the Downhill Bikes Web site as it exists
today. The next step is to add functionality to the site by creating new XML Web
services and then authoring code to integrate the new services.
24
PART 1: CREATING AN XML Build an XML Web Service
WEB SERVICE Overview of Part 1
In this part, we’ll build our first XML Web service in Visual Studio .NET.
The Web service will demonstrate one of the key benefits of using XML
Web services: Integration of disparate data sources into an easy to use
data object. We’ll unite two different data sources, XML and SQL Server,
into a single ADO.NET object called a DataSet. The DataSet serializes
automatically as XML, and is returned by the XML Web service.
XML Web services form the core business logic in the .NET application
model. In an upcoming section, we’ll write a Microsoft Visual Basic® .NET
program based on Microsoft Windows® that will use this Web service.
Then, we’ll create Web and mobile interfaces as well. In each case, the
logic in the XML Web service will serve as the core of the application,
running separately from whatever presentation model we choose as
appropriate for the situation.
After finishing the Guided Tour, you’ll have a good understanding of the
importance and power of XML Web services, and how Microsoft Visual
Studio® .NET enables developers to quickly and easily build Web services,
and incorporate them into business applications.
24
PART 1: BUILD AN XML WEB SERVICE
Step 1 of 7: Add new Web service file
Adding a new file with the extension .asmx will instruct ASP.NET to treat
the methods tagged with [WebMethod] as Web service calls.
a. In the Solution Explorer, right-click DownhillBikes, click Add, then click Add
New Item… .
b. In the Templates list, click the Web Service icon. Leave the default name
Service1.asmx.
c. Click Open.
24
PART 1: BUILD AN XML WEB SERVICE
Step 2 of 7: Add Customers table to the Web service
Using the RAD features of Visual Studio .NET, create a connection to the
Customers table by dragging it from the Server Explorer.
a. From the View menu, click Server Explorer to open it. (Or, press CTRL+ALT+S.)
b. Expand the Servers tree and locate the Customers table (Servers »
computername » SQL Servers » computername » bikes » Tables).
c. Drag the Customers icon to the right, onto the design surface.
• Optional
If you would like to preview the data in the Customers table, right-click
the Customers icon, and click Retrieve Data from Table. This is an easy
way to quickly verify or modify the data in the table. Close this window
with CTRL+F4 before moving to the next step.
24
PART 1: BUILD AN XML WEB SERVICE
Step 3 of 7: Add the Get and Update Web methods
The GetData Web method will return a DataSet that combines the SQL data
from Customers, and the Order data from the Orders.xml file. The DataSet
can then be manipulated easily on any tier of the application.
Even though these are two completely different kinds of data storage
mechanisms, ADO.NET combines them into a disconnected in-memory
DataSet for consumption by the XML Web service.
This will position the insertion point in the right spot so that we can insert some
code.
c. From the View menu, click Toolbox. Or, press CTRL+ALT+X.
d. Click the Guided Tour tab then double-click 1.3 WebService methods item to
insert the code.
• Optional
You can remove the four comment tags (//) before HelloWorld() as
shown in the following picture and recompile to see a simple WebMethod
example.
24
PART 1: BUILD AN XML WEB SERVICE
Step 4 of 7: Build and test the Web service
Here we build the page and test the Web service using a test page
generated automatically by ASP.NET. This will allow us to see the data
returned from the two data sources and show the results in a simple Web
page. This is how quickly and easily you can build and deploy an XML Web
service with Visual Studio .NET!
24
PART 1: BUILD AN XML WEB SERVICE
Step 5 of 7: Add a new performance counter
Using the Visual Studio .NET RAD server features, components and server-
side resources, such as performance counters and message queues, are
wrapped with programmatic interfaces, making them easy to program.
In this step, we’ll create a custom performance counter that will keep
track of the number of times per second the new Web service method
GetData is accessed.
24
PART 1: BUILD AN XML WEB SERVICE
Step 6 of 7: Use the performance counter
Now we will update the performance counter by invoking it in our GetData
method. One line of code is all we need to update the performance
counter. Prior to Visual Studio .NET, simple steps such as these required
hundreds of lines of code.
24
PART 1: BUILD AN XML WEB SERVICE
Step 7 of 7: Test the performance counter
Now we’ll show the performance counter in action by watching the
counter increment as we use the XML Web service.
c. Click the GetData hyperlink. Click Invoke. Press the Refresh icon (Located on
the left side of the toolbar) several times to requery the Web service.
d. Switch to PerfMon and you should see the performance counter move up and
down, showing the number of requests per second this page is handling.
e. Close PerfMon (don’t save the changes) and all browser windows.
f. In Visual Studio .NET, from the Window menu, click Close All Documents. If
asked to save changes, click Yes.
24
PART 2: RICH WINDOWS Summary
FORMS In this first exercise you have accomplished many of the tasks that will drive the
next generation of computing. You have built and deployed an XML Web service.
You added business logic and database connectivity using the Visual Studio .NET
Server Explorer. Most importantly, you created this XML Web service in minimal
time using the RAD skills that today’s developers already have. Now that we have
constructed and tested our XML Web service, we will build a series of client
experiences that integrate the Web service into their functionality.
So, back to our sample company, Downhill Bikes. The company wants to
add a smart client so that their call center staff can quickly retrieve
details of customer orders as they field customer inquiries.
24
PART 2: BUILD A RICH WINDOWS FORM
Step 1 of 9: Add a new Visual Basic Windows Form project
Create a new Visual Basic .NET Windows project for our Customer Service
program.
a. From the File menu, choose Add Project, then New Project.
b. In the Projects Type list, choose Visual Basic Projects. In the Templates list,
choose Windows Application. Finally, in the Name box, type
CustomerService and click OK.
24
PART 2: BUILD A RICH WINDOWS FORM
Step 2 of 9: Add a data grid to the form
Now we’ll add a data grid to the form. We’ll use the data grid to see
customer and order data. We’ll be able to make changes directly in the
grid, resize columns, change sort order and drill into the order data
details.
24
PART 2: BUILD A RICH WINDOWS FORM
Step 3 of 9: Add a Web reference to our Web service
24
PART 2: BUILD A RICH WINDOWS FORM
Step 4 of 9: Add the Imports statements
24
PART 2: BUILD A RICH WINDOWS FORM
Step 5 of 9: Add the Visual Basic. NET source code
This code will complete the loop, referencing and calling the XML Web
service, taking the data DataSet returned and binding it to the DataGrid on
our form.
a. Position the insertion point on the line above the End Class statement.
b. Double-click on 2.5 VB methods to insert all the code.
24
PART 2: BUILD A RICH WINDOWS FORM
Step 6 of 9: Run the program and make changes
The DataGrid automatically senses the shape of the XML data and adds a
plus sign to let the user drill into customer order details. The DataGrid also
allows sorting of columns and editing of data if security permissions are
met.
• Important
• In the following steps, you may press the F5 key as a shortcut to build
and run the project. Please make sure that the GuidedTour Add-in Tool
Window does not have focus when you use F5. Pressing F5 when the
GuidedTour Tool Window has focus will cause it to go to part 0. (If this
happens, you can simply navigate back to this step.)
a. From the Debug menu, click Start to run the application. (Or, press F5.)
b. Expand a customer record (by clicking the + in the left-most column) and click
CustomerOrders to view its orders.
c. Expand an order record and click OrdersDetails to view its details.
d. Click the left-arrow icon twice to return to the customer records.
• Important
• If the CustomerService program doesn’t start, make sure it’s your default
project. In the Solution Explorer, right-click CustomerService, then click
Set as StartUp Project.
24
PART 2: BUILD A RICH WINDOWS FORM
Step 7 of 9: Stop the Web service
Stopping IIS will stop the XML Web Service. Once we do this, the rich
Windows application will switch to offline mode, giving the user full access
to the data.
a. Click the Windows Start button and choose Run. [WINDOWS KEY ] + R
b. In the Open box, type iisreset /stop and click OK.
24
PART 2: BUILD A RICH WINDOWS FORM
Step 8 of 9: Try it again
With the XML Web service offline, access to the application data is not
available. The Microsoft .NET Framework provides built-in Web caching to
our application when we use ADO.NET which enables the offline scenario.
a. In Visual Studio .NET, from the Debug menu, click Start to run the application.
(Or, press F5.)
b. Note the status bar displays Working in offline mode.
c. Change the password of Robert Young to abc and press the DOWN ARROW key.
d. Close the Form1 window.
24
PART3: EXTENDING THE PART 2: BUILD A RICH WINDOWS FORM
RICH WINDOWS FORM
Step 9 of 9: Start IIS and run once more
When we start IIS and access our Windows application, we will see our
offline data has been added to the SQL Server 2000 Database, completing
the reconnect portion of the offline scenario.
a. Click the Windows Start button, then click Run… . (Or, press [WINDOWS KEY ]
+ R.)
b. In the Open box, type iisreset /start and click OK.
c. After the console window appears, wait for it to close by itself.
c. In Visual Studio .NET, from the Debug menu, click Start to run the application.
(Or, press F5.)
d. Note that Robert Young’s password is abc and the status bar says Connected to
WS.
e. Close the Form1 window.
f. In Visual Studio .NET, from the Window menu, click Close All Documents. If
asked to save changes, click Yes.
Summary
You have just completed the construction of a data-bound smart client application
using Visual Studio .NET and the Windows Form designer. In this exercise, we
incorporated the XML Web service built in Part I to extend the functionality of our
Windows Form application. The next step in our Guided Tour will introduce us to the
power and breadth of the Visual Studio .NET extensibility model and Crystal
Reports for Visual Studio .NET.
24
Proceeding with our tour, we will use Crystal Reports to extend our existing
smart client with built-in reporting.
24
PART 3: EXTEND THE WINDOWS FORM
Step 1 of 6: Add a new Visual Basic. NET Windows Form
We will add a second Windows Form to our project to contain the Crystal
Report we build in the next step.
24
PART 3: EXTEND THE WINDOWS FORM
Step 2 of 6: Add a Crystal Report Viewer
The Crystal Report Viewer is integrated into Visual Studio .NET like the
other rich controls in the toolbox. We will drag this report viewer to our
form and use the new Windows Forms dock feature to automatically resize
the report when we resize the form.
24
PART 3: EXTEND THE WINDOWS FORM
Step 3 of 6: Add a Report Document
Using existing or new reports is easy with Visual Studio .NET. In this step
we just assign the report to the report document.
24
PART 3: EXTEND THE WINDOWS FORM
Step 4 of 6: Hook up the Report Viewer
In this step we will pass the data from the Web service to the Crystal
Report. Crystal Reports was designed to integrate easily into Visual Studio
.NET projects, so reports can reuse existing DataSets, relieving the
developer from having to recreate their data access logic.
24
PART 3: EXTEND THE WINDOWS FORM
Step 5 of 6: Show the new Windows Form
In this step we will add a button to call the report form we just created.
24
PART4: BUILD A WEB PART 3: EXTEND THE WINDOWS FORM
FORM AND LOAD TEST
Step 6 of 6: Try it
Summary
In this step of the Guided Tour, you successfully incorporated a Crystal Reports
viewer into the Downhill Bikes smart client application. This exercise illustrates the
power of the Visual Studio .NET extensibility model by showing how third-party tool
and language vendors can seamlessly integrate their products directly into Visual
Studio .NET.
In the next step of the Guided Tour, we’ll delve into Web application development
and the use of Application Center Test to analyze the load performance of our Web
applications.
With Visual Studio .NET and Web Forms, developers can rapidly develop
Web applications that run in any browser on any operating system using
the same techniques previously used to build form-based desktop
applications.
24
Application Center Test (ACT), a new feature integrated with Visual Studio
.NET Enterprise Architect, enables developers to gather performance
metrics and perform functional testing of XML Web services within the
Visual Studio .NET development environment.
Before Downhill Bikes goes live with their new application, they would like
to know that it will scale well. Using a built-in tool like Application Center
Test, their developers and testers can see the immediate effects of the
changes they make in the performance of their application.
In this part, we will build a Web Form that accesses the previously built
Web service. Then we will load test the Web service with ACT.
24
PART 4: BUILD A WEB FORM AND LOAD TEST
Step 1 of 6: Add a new ASP.NET Web Form built with C #
Using a built-in template in Visual Studio .NET, we will add a new Web
Form for our Orders status page.
24
PART 4: BUILD A WEB FORM AND LOAD TEST
Step 2 of 6: Add an ASP.NET DataGrid
Dragging a DataGrid from the Web Forms toolbox provides an easy way to
visually compose Web applications. The DataGrid is analogous to the grid
control we used earlier on a Windows Form. The difference is that the
Web Forms version will render HTML, though the developer working with
these two controls will see little difference between them, providing a
consistent development experience and shorter learning curve for
developers new to the Web.
f. Double-click the 4.2 Orders Page_Load() item in the Guided Tour toolbox. The
code should now look like this:
24
PART 4: BUILD A WEB FORM AND LOAD TEST
Step 3 of 6: Secure access to the Orders Web Form
Using the Web.config file, we can lock down access to this page so that
only authenticated users have access. This file is part of a hierarchy of
configuration files that make it easy to secure Web applications built with
Visual Studio .NET.
d. Position the insertion point below that line, press the Enter key, and double-click
4.3 Authenticate.
e. Right-click the Orders.aspx file in the Solution Explorer and click View Code.
f. From the File menu, click Build and Browse to view the new Orders page. (Or,
press CTRL+F8.)
g. Notice you were first directed to the login page. Click sign in. Now you should
see the orders for the customer you logged in as (CustomerID is 1).
24
PART 4: BUILD A WEB FORM AND LOAD TEST
Step 4 of 6: Start Application Center Test (ACT)
We will use ACT to see the affects of adding an output caching directive to
our Web Service. Output caching is a new feature of ASP.NET which enables
the reuse of cached pages, thus saving server CPU cycles and increasing
perceived application performance.
a. From the Windows Start menu, select All Programs (Programs in Windows 2000),
then Microsoft Visual Studio .NET, then Visual Studio .NET Enterprise Features.
From there, click Microsoft Application Center Test.
24
PART 4: BUILD A WEB FORM AND LOAD TEST
Step 5 of 6: Build a new ACT Test Script
Using the built-in Wizard it is very easy to start using ACT. The recording
feature records a user session we can then play back to generate load and
stress our application.
h. Click Next.
i. In the Test name box, type:
orders test
24
j. Click Next and then click Finish.
24
PART 4: BUILD A WEB FORM AND LOAD TEST
Step 6 of 6: Add Page Output Caching
While the page is under load, we’ll turn on page caching, with just one
line of code. The increase in the number of pages served per second should
jump dramatically. Notice that ASP.NET does not require us to stop or
disrupt the Web site when we update a page. We just save the page and
the changes take effect immediately.
d. While the load test is running, switch back to Visual Studio .NET.
e. From the View menu, click Solution Explorer. CTRL+ALT+L
f. Double-click the Orders.aspx file.
g. From the View menu, click HTML Source. CTRL+PgDn
h. Place the insertion point at the beginning of the second line:
<!DOCTYPE
| HTML PUBL IC
24
j. From the File menu, click Save All. CTRL+SHIFT+S
k. Switch back to the Test Status window. Click the Show Details >> button to see
the graph.
You should see a jump in the number of Requests per Second (RPS) being served
up by the page. Since the page is cached (for 10 seconds at a time), we’re
drastically reducing the number of database calls.
Summary
Part 4 of the Guided Tour enabled us to build an ASP.NET Web application and test
it using Application Center Test (ACT). The Web Form-based application we built
was constructed using the same development paradigms previously used to build
form-based desktop applications – effectively leveling the learning curve to Web
application development. We then employed ACT to load test our Web application
to ensure scalability in a production environment.
In Part 5, we’ll integrate the functionality of third-party XML Web services into our
Web application.
24
PART 5: INTEGRATE XML XML Web Services at Work
WEB SERVICES Overview of Part 5
XML Web services will revolutionize software development both inside and
outside the firewall. Visual Studio .NET makes it easy to create and
consume Web services, using the familiar metaphor of the application
component.
Developers using Visual Studio .NET can simply right-click in the Solution
Explorer window and select “Add Web Reference.” From there, they need
only supply the URL to the Web service on their intranet or the Web, or
browse the UDDI (Universal Description, Discovery, and Integration)
registry to locate desirable Web references. The Web service is then
available for use from within Visual Studio, with statement completion and
other IntelliSense features automatically supported.
When Downhill Bikes wants to implement a new service for customers, the
company needs tools to help their developers turn ideas into
implementation. By using Visual Studio .NET, developers can add new
functionality in a matter of hours, not days.
24
PART 5: BUILD A WEB PAGE - ORDERS
Step 1 of 8: Add an image to the page
In this step you will add user interface elements to the thank you page to
offer a gift certificate to a Downhill Bikes customer as they complete a
transaction.
• Important
• The following step requires an Internet Connection.
a. Double-click ThankYou.aspx in the Solution Explorer. CTRL+ALT+L
b. Display the Web Forms toolbar by pressing CTRL+ALT+X and clicking the Web
Forms button.
c. Drag an Image control from the Web Forms toolbar bar into the lower-right cell.
The image will be populated dynamically from the Web service.
24
PART 5: BUILD A WEB PAGE - ORDERS
Step 2 of 8: Add a Web reference
In this step you will use UDDI and a Web service that returns valid gift
certificates to customers.
e. Click the blue FontVelocity link, then click the FontVelocity WSDL-interface
link. The resulting XML is the Web Service Description Language contract,
describing a single method, Render.
f. Click the Add Reference button.
24
PART 5: BUILD A WEB PAGE - ORDERS
Step 3 of 8: Generate the gift certificate
In this step you will call a Web service that instantiates a gift certificate,
which is actually a series of database records stored on a third party
partner’s server. The back-end service is using a C++ component to
generate and return a unique serial number, though the Web service
interface abstracts the implementation, enabling business partners to
integrate regardless of platform or tool.
24
PART 5: BUILD A WEB PAGE - ORDERS
Step 4 of 8: Place an order
Let’s run the application and see the results of our work.
a. From the View menu, click Solution Explorer. (Or, press CTRL+ALT+L.)
b. In the Solution Explorer, under the DownhillBikes project, right-click
Default.aspx, then click Set As Start Page.
c. From the Debug menu, click Start Without Debugging. (Or, press CTRL+F5.)
d. Click Add to Cart, and then click Checkout.
24
PART 5: BUILD A WEB PAGE - ORDERS
Step 5 of 8: Add the bike store finder service
24
PART 5: BUILD A WEB PAGE - ORDERS
Step 6 of 8: Add elements to the page
In this step, we will enhance our Web Form by adding additional user
interface elements to the page. Note how similar this experience is to the
Windows Forms design experience.
24
PART 5: BUILD A WEB PAGE - ORDERS
Step 7 of 8: Add code to handle the button click
The code behind the button will set a reference to the Web service and
send the user’s zip code to it, returning an XML-based list of bike stores
that we will then append to a label control on the page.
24
PART 6: BUILD A PART 5: BUILD A WEB PAGE - ORDERS
MOBILE WEB PAGE
Step 8 of 8: Place an order
Summary
In this part of the Tour, you used the built-in support for UDDI that is found in Visual
Studio .NET to discover and incorporate a Web service from third-party partners to
your Web application. The new functionality enables Downhill Bikes to both offer gift
certificates to its customers find authorized bike stores where they can redeem their
certificates.
24
The Microsoft Mobile Internet Toolkit (MMIT), available as an add-on to
Visual Studio .NET, provides the tools to enable mobile Web application
development. MMIT makes it easy to build a single mobile Web-based
application that will automatically generate HTML, compact HTML
(cHTML), or Wireless Markup Language (WML), depending on the target
device's capabilities, and do so using business logic in XML Web services.
Now with MMIT, targeting multiple devices with a single Visual Studio .NET
application is as seamless as building a rich Windows-based desktop
application.
Having added new gift certificate capabilities to its site in the previous
part, Downhill Bikes now needs an easy way for their dealers to validate
the gift certificates online. They also want an easy way for their customers
to check the balance of their gift certificates online.
In this part you will use the Mobile Web designer in Visual Studio .NET to
build a Web page that can be accessed by a variety of devices, giving
DownhillBikes’ dealers and their customers complete flexibility in running
the mobile Web application.
24
6: BUILD A WEB PAGE – MOBILE
Step 1 of 7: Add a mobile Web form
When MMIT is installed, Mobile Web Forms are integrated directly into the
Visual Studio .NET IDE. In this step, you will start a new mobile
application.
24
PART 6: BUILD A WEB PAGE – MOBILE
Step 2 of 7: Add elements to the form
Building mobile Web forms is identical to building Web Forms and Windows
Forms. The code behind is also the same so leveraging work done in other
projects is easy.
24
PART 6: BUILD A WEB PAGE – MOBILE
Step 3 of 7: Add another mobile Web form
In this step you will drag a second mobile form onto the design surface and
add a label to it. This form will be used to display the results of the
validation performed in the previous step.
a. Drag a Form onto the design surface below the first form (Form1).
b. Drag a Label onto the second form. Form2 should look like the one shown below:
24
PART 6: BUILD A WEB PAGE – MOBILE
Step 4 of 7: Add code behind the Validate button
In this step you will add code behind the validation button added in the
previous step to call the server-side validation component and return text
indicating whether or not the certificate is valid.
24
PART 6: BUILD A WEB PAGE – MOBILE
Step 5 of 7: View the new form
24
PART 6: BUILD A WEB PAGE – MOBILE
Step 6 of 7: View in Microsoft Mobile Explorer
Using the Microsoft Mobile Explorer we can emulate an actual WAP phone
to test the functionality and compatibility of our mobile page.
a. If you have the Microsoft Mobile Explorer Browser installed, you can preview this
page from a cell phone emulator.
b. From the View menu, click Mobile Explorer Browser, and then choose Show
Browser.
c. Type http://localhost/downhillbikes/verify.aspx in the navigation box.
d. Click the text box and type 000102506258 for the serial number.
e. Click OK, then click Validate. The resulting screens should look similar to the
following:
24
e. In Visual Studio .NET, from the Window menu, click Close All Documents. If
asked to save changes, click Yes.
24
PART 6: BUILD A WEB PAGE – MOBILE
Step 7 of 7: Summary
The Visual Studio .NET Guided Tour covered three areas: building client
application, web-based server applications, and XML Web Services.
The Microsoft .NET platform pivots itself around these 3 fundamentals that
are driving the digital revolution. First, the platform was built in concert
with the Microsoft strategy around XML Web services – the crucial factor in
solving the pressing problem of software and business integration. Second,
Microsoft .NET provides the underlying substrate to deliver client
experiences tailored to the desktop PC, the thin-client Web browser, and
to the multitude of emerging smart devices. Finally, the Microsoft .NET
platform recognizes the need for enterprise-critical server software and
integration.
By providing the most efficient way to both build and consume XML Web
services, Visual Studio .NET keeps developers on the vanguard of next
generation application development. In addition, Visual Studio .NET
extends the concept of RAD to every facet of the client experience,
enabling developers to build desktop, Web, and mobile applications using
the skills they already have and the languages they already know. Finally,
Visual Studio .NET demystifies server-side development – providing RAD
development of business logic, supplying the tools needed to deploy data-
rich Internet applications, and delivering the premier suite of enterprise
servers to satisfy every business need.
With Visual Studio .NET, the once unattainable goals of developers and
organizations alike are finally brought within reach. Empowering
organizations to seamlessly move to the world of XML Web services,
delivering resources for every client experience, and addressing the issues
of server development and integration – Visual Studio .NET unleashes the
power of .NET.
Summary
The final part to the Guided Tour provided an introduction to the Microsoft Mobile
Internet Toolkit (MMIT). MMIT provided a forms-based visual interface to build
mobile applications for a variety of emerging smart mobile devices.
24
APPENDICES
In addition to this Visual Studio .NET product readme, Visual Studio .NET includes
other readme documents that contain information pertinent to specific product
areas. The following list contains the names of related readme documents and their
locations on supplied media.
Content
Name File Name Location
.NET NA http://go.microsoft.com/fwlink/?LinkId=501
Framework
SDK
24
.NET\Enterprise Samples\Duwamish 7.0
CS
24
• Windows XP Home — 96 MB
Appendix 2: Installation
• Before installing Visual Studio .NET, verify that you have met the
system requirements and follow the instructions below for preparing to
install Visual Studio .NET.
• If you are running an operating system with Turkish or Azeri set as the
active locale, see the .NET Framework SDK readme at
http://go.microsoft.com/fwlink/?LinkId=501 before installing. In version 1
of the .NET Framework, there are known issues for the Turkish and
Azeri locales.
Warning: If you have previously installed any pre-release versions of the .NET
Framework or Visual Studio (Release Candidate, Beta 2, Beta 1, or PDC
Technology Preview) on your computer, you must complete the following steps
to uninstall the previous releases.
1. From the Start menu, choose Settings and then Control Panel.
24
2. Choose Add/Remove Programs and then choose Change or Remove
Programs.
6. After uninstall completes for Visual Studio .NET Beta 2, return to the
Add/Remove Programs window.
1. From the Start menu, choose Settings and then Control Panel.
6. After uninstall completes for Visual Studio .NET 7.0 Beta 1, return to the
Add/Remove Programs window.
24
8. Answer Yes to proceed with removal.
3. Answer Yes, when prompted, to proceed with the removal of Visual Studio
.NET PDC Technology Preview.
6. From the Start menu, choose Settings and then Control Panel.
The setup program scans your disk for installed components. If the scan
determines that the system requires a component update, Step 1: Install
Windows Component Update, is available in the Installation dialog box.
Select Step 1 to update the system components. If a component update is
24
not required, this option is not available. After updating the system
components, the Installation dialog box enables Step 2: Install Visual
Studio .NET. Select Step 2 to install Visual Studio .NET.
24