Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

10 CHAPTER 1 Getting started with Visual Studio 2012 and Blend for Visual Studio 2012


FIGURE 1-4 he New Project screen with Visual Basic and Visual C# project templatesT

Your new project might differ based on the software installed on your computer. For
example, the template shown here is the Get Windows Azure SDK For .NET template that was
installed when the Azure SDK was installed.
All these templates are for web-related applications; none of them can be used to cre-
ate a Windows 8 application. Note that none of the templates support the use of JavaScript
as a server-side language, but you can select a Visual Basic or C# web project template and
use client-side (on the browser) JavaScript. Remember that you can use HTML5, CSS3, and
JavaScript as client-side technologies with any of the web application templates.
Under one of the languages, you can click the Web node to see a list of available web
application templates. You can select a template called ASP.NET Empty Web Application to
begin with a nearly empty startup project.

Examining ASP.NET Empty Web Application
After selecting ASP.NET Empty Web Application, a copy of the template is opened in the
Solution Explorer window on the upper right, as shown in Figure 1-5. This window contains
a node for the project (WebApplication1); a node that references the project settings, called
My Project; and a node that references the project’s configuration file, called Web.config. This
project is almost empty. If you press F5 to build and run the web application, it won’t run. You
must add a webpage to the project first.
Free download pdf