![]() |
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Published: Wednesday, April 27, 2005 By Scott Mitchell
In Part 1 we discussed Microsoft's new "Express" line for Visual Studio 2005, which includes Visual Web Developer 2005 Express, a slimmed down, affordable version of Visual Studio 2005 targeted for Web developers. In this second and final part we'll look at installing Visual Web Developer 2005 and getting started with creating a simple ASP.NET site.
Downloading and Installing Visual Web Developer 2005 Express The installation process steps you through a series of screens from which you can indicate what products to install (see the screenshot to the right). Of particular note, you can indicate to download and install SQL Server 2005 Express addition, which you'll want to do in order to create dynamic data-driven ASP.NET 2.0 applications. (Of course you could use other databases as the backend for your data-driven applications, such as SQL Server 2000, Oracle, Access, and so on.) The setup process will download the products selected and install the .NET Framework 2.0 Beta 2, Visual Web Developer 2005 Beta 2, and whatever other products you specified (such as the MSDN Library and/or SQL Server 2005 Express). Depending on the options you select the download can range from a low of about 65 MB to over 300 MB.
Creating Your First ASP.NET 2.0 Website
At the bottom of the New Web Site dialog box you can specify the location of the new website, and the location can be:
Default.aspx and Default.aspx.vb|cs, depending on if you opted to
create a Visual Basic or C# website. Compare this to Visual Studio .NET, which automatically adds files like Web.config,
Global.asax, AssemblyInfo.vb|cs, Styles.cs, and so on. Furthermore, since Virtual Web Developer
includes its own mini-Web server for testing ASP.NET pages, there's no dependence on IIS, meaning that there's no new virtual
directory added to IIS when a new ASP.NET projects is created. (This also means that you can develop ASP.NET
applications on Windows XP Home.)
At this point there are a ton of different paths you could take. You might want to add a new database (assuming you installed SQL Server 2005 Express), populate it with some data, and display the data in an ASP.NET page using the new GridView control. (See A Sneak Peak at Working with Data in ASP.NET 2.0 for more information on ASP.NET 2.0's new DataSource controls and GridView control.) Or you may want to define a site-wide template to ensure a consistent look and feel across the pages on your site. This is accomplished in ASP.NET 2.0 using MasterPages, and is discussed in more detail in a previous article of mine, A Sneak Peak at MasterPages in ASP.NET 2.0.
For this article, though, let's just create a very simply ASP.NET page and then view it in a browser. Simply type in the
text, "This is my first ASP.NET 2.0 page!" within the HTML view of When you start a page, with or without debugging, Visual Web Developer launches the ASP.NET Development Server. This mini-Web server accepts incoming requests only from localhost, so you don't have to worry about opening a potential security hole. The ASP.NET page is then visited and served via this mini-Web server. (Visual Studio 2005 allows you to configure whether or not ASP.NET 2.0 Web applications are served through IIS or the ASP.NET Development Server.)
If you inspect the Address bar in the screenshot above you'll notice that the URL of the visited ASP.NET page is
Conclusion You can download and try out Visual Web Developer 2005 Express for free while it's still in Beta. Best of all, Beta 2 has a Go Live license, meaning you can, if you want, create production code with the beta bits. In fact, there are a slew of Web hosting companies that already provide Beta 2 support. Happy Programming!
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|