Features
- Cover Type: Paperback with 768 pages
- Published by: Wrox; Pap/Onl edition March 4, 2008
- Written in: English
- ISBN 10 Number: 047018759X
- ISBN 13 Number: 978-0470187593
-
Book Dimensions:
9.1 x 7.3 x 1.7 inches
- Weighs: 2.3 pounds
Product Description
This book is for anyone who wants to learn how to build rich and interactive web sites that run on the
Microsoft platform. With the knowledge you gain from this book, you create a great foundation to build any type of web site, ranging from simple hobby-related web sites to sites you may be creating for commercial purposes.
Anyone new to web programming should be able to follow along because no prior background in web development is assumed. The book starts at the very beginning of web development by showing you how to obtain and install Visual Web Developer. The chapters that follow gradually introduce you to new technologies, building on top of the knowledge gained in the previous chapters.
Do you have a strong preference for Visual Basic over C# or the other way around? Or do you think both languages are equally cool? Or maybe you haven't made up your mind yet and want to learn both languages? Either way, you'll like this book because
all code examples are presented in both languages!
Even if you're already familiar with previous versions of ASP.NET, with the 1.
x versions in particular, you may gain a lot from this book. Although many concepts from ASP.NET 2.0 are brought forward into ASP.NET 3.5, you'll discover there's a host of new stuff to be found in this book, including an introduction to LINQ, the new CSS and JavaScript debugging tools, new ASP.NET controls, and integrated support for ASP.NET Ajax.
To build effective and attractive database-driven web sites, you need two things: a solid and fast framework to run your web pages on and a rich and extensive environment to create and program these web pages. With ASP.NET 3.5 and Visual Web Developer 2008 you get both. Together they form
the platform to create dynamic and interactive web applications.
ASP.NET 3.5 builds on top of its popular predecessor ASP.NET 2.0. While maintaining backward compatibility with sites built using this older version, the
Microsoft .NET Framework 3.5 in general and ASP.NET 3.5 in particular add a lot of new, compelling features to the mix.
Continuing the path of "less code" that was entered with the 2.0 version of the .NET Framework, ASP.NET 3.5 lets you accomplish more with even less code. New features like LINQ that are added to the .NET Framework allow you to access a database with little to no hand written code. The integration of
Microsoft ASP.NET Ajax into the ASP.NET Framework and Visual Web Developer means you can now create fast responding and spiffy web interfaces simply by dragging a few controls onto your page and setting a few properties. This book gives you an in-depth look at both these technologies.
The support for cascading style sheets (CSS), the language to lay out and format web pages, has undergone a major overhaul in Visual Web Developer. The design time support, that shows you how a page will eventually look in the browser, has been vastly improved. Additionally, Visual Web Developer now ships with a lot of tools that make writing CSS a breeze.
However, drag-and-drop support and visual tools are not the only things you'll learn from this book. ASP.NET 3.5 and Visual Web Developer 2008 come with a great and extensive set of tools to help you program your web applications. These tools range from the new LINQ syntax that allows you to query data and databases in your web applications, to the vastly improved debugging capabilities that allow you to debug your application from client-side JavaScript all the way up into your server-side code, all with the same familiar user interface, commands, and actions.
Under the hood, ASP.NET 3.5 makes use of the same run-time as version 2.0. This ensures a great backward compatibility with that version, which means that ASP.NET 2.0 applications continue to run under the new framework. But don't be fooled by the fact that the run-time hasn't changed. Although the technical underpinnings needed to execute your web application haven't changed, the .NET 3.5 Framework and ASP.NET add
a lot of new features, as you'll discover in this book.
Probably the best thing of Visual Web Developer 2008 is its price: it's available for free. Although the commercial versions of Visual Studio 2008 ship with Visual Web Developer, you can also download and install the free Express Edition. This makes Visual Web Developer 2008 and ASP.NET 3.5 probably the most attractive and compelling web development technologies available today.
This book teaches you how to create a feature-rich, data-driven, and interactive web site. Although this is quite a mouthful, you'll find that with Visual Web Developer 2008 this isn’t as hard as it seems. You'll see the entire process of building a web site, from installing Visual Web Developer 2008 in Chapter 1 all the way up to putting your web application on a live server in Chapter 18. The book is divided into 18 chapters, each dealing with a specific subject.
Chapter 1, “Getting Started With ASP.NET 3.5.” In this chapter you'll see how to obtain and install Visual Web Developer 2008. You'll get instructions for downloading and installing the free edition of Visual Web Developer 2008, called the Express Edition. You are also introduced to HTML, the language behind every web page. The chapter closes with an overview of the customization options that Visual Web Developer gives you.
Chapter 2, “Building an ASP.NET Web Site.” This chapter shows you how to create a new web site and how to add new elements like pages to it. Besides learning how to create a well-structured site, you also see how to use the numerous tools in Visual Web Developer to create HTML and ASP.NET pages.
Chapter 3, “Designing Your Web Pages.” Visual Web Developer comes with a host of tools that allow you to create well-designed and attractive web pages. In this chapter, you see how to make good use of these tools. Additionally, you learn about CSS, the language that is used to format web pages.
Chapter 4, “Working with ASP.NET Controls.” ASP.NET Server controls are one of the most important concepts in ASP.NET. They allow you to create complex and feature-rich web sites with very little code. This chapter introduces you to the large number of server controls that are available, explains what they are used for, and shows you how to use them.
Chapter 5, “Programming Your ASP.NET Web Pages.” Although the built-in CSS tools and the ASP.NET server controls can get you a long way in creating web pages, you are likely to use a programming language to enhance your pages. This chapter serves as an introduction to programming with a strong focus on programming web pages. Best of all: all the examples you see in this chapter (and the rest of the book) are in both Visual Basic and C#, so you can choose the language you like best.
Chapter 6, “Creating Consistent Looking Web Sites.” Consistency is important to give your web site an attractive and professional appeal. ASP.NET helps you create consistent-looking pages through the use of master pages, which allow you to define the global look and feel of a page. Skins and themes help you to centralize the looks of controls and other visual elements in your site. You also see how to create a base page that helps to centralize programming code that you need on all pages in your site.
Chapter 7, “Navigation.” To help your visitors find their way around your site, ASP.NET comes with a number of navigation controls. These controls are used to build the navigation structure of your site. They can be connected to your site's central site map that defines the pages in your web site. You also learn how to programmatically send users from one page to another.
Chapter 8, “User Controls.” User Controls are reusable page fragments that can be used in multiple web pages. As such, they are great for repeating content like menus, banners, and so on. In this chapter, you learn how to create and use User Controls and enhance them with some programmatic intelligence.
Chapter 9, “Validating User Input.” A large part of interactivity in your site is defined by the input of your users. This chapter shows you how to accept, validate, and process user input using ASP.NET server controls. Additionally, you see how to send e-mail from your ASP.NET web application and how to read from text files.
Chapter 10, “ASP.NET Ajax.”
Microsoft ASP.NET Ajax allows you to create good looking, flicker free web pages that close the gap between traditional desktop applications and web applications. In this chapter you learn how to use the built-in Ajax features to enhance the presence of your web pages, resulting in a smoother interaction with the web site.
Chapter 11, “Introduction to Databases.” Understanding how to use databases is critical to building modern web sites, as most modern web sites require the use of a database. You'll learn the basics of SQL, the query language that allows you to access and alter data in a database. In addition, you are introduced to the database tools found in Visual Web Developer that help you create and manage your SQL Server databases.
Chapter 12, “Displaying and Updating Data.” Building on the knowledge you gained in the previous chapter, this chapter shows you how to use the ASP.NET data-bound and data source controls to create a rich interface that enables your users to interact with the data in the database that these controls target.
Chapter 13, “LINQ.” LINQ is
Microsoft's new solution for accessing objects, databases, XML, and more. In this chapter you'll see how to use LINQ to SQL to access SQL Server databases. Instead of writing a lot of manual code, you create a bunch of LINQ objects that do the heavy work for you. This chapter shows you what LINQ is all about, how to use the visual LINQ designer built into Visual Web Developer, and how to w
Back Cover Copy
Beginning ASP.NET 3.5 In C# and VB To build effective and eye-catching database-driven web sites, you must first have a solid framework on which to run your web pages as well as a rich environment in order to create and program these web pages.
Microsoft's ASP.NET 3.5 and Visual Web Developer 2008 combine forces to provide you with the ultimate platform on which you can create dynamic and interactive web applications.
Popular Wrox author Imar Spaanjaars begins by demonstrating how to obtain and install Visual Web Developer. With each successive chapter, he introduces you to new technologies that build on knowledge gained from previous chapters. You'll learn that both ASP.NET 3.5 and Visual Web Developer now come with an extensive set of tools that will help you smoothly program your web applications. With the knowledge you gain from this book, you will be able to create feature-rich, database-driven, interactive web sites.
What you will learn from this book -
Ways that ASP.NET Server controls allow you to create complex web sites with very little code -
How to use the extensive set of CSS tools that help you design your web pages -
How to program responsive and interactive web pages with either C# or Visual Basic® -
How to work with databases to create rich, data-driven web pages -
How you can easily create a centralized and maintainable site design -
How to secure your web site, providing login functionality and role-based access to content
Who this book is for This book is for anyone who wants to build rich and interactive web sites that run on the
Microsoft platform. No prior experience in web development is assumed.
Wrox Beginning guides are crafted to make learning
programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.
Reader ReviewsI have worked for many years as a C (C++) programmer, and routinely access various databases (Access, SQL Server, mySQL) using MFC code. I decided at long last to go to the Internet with my quite involved linguistic software, and have messed around when I had spare time for several months not really getting it to work. The two skills I felt like I really needed to acquire into order to be up and running were (1) the ability to access databases securely and reliably from a Web site (logins, etc.), and (2) the ability to call dlls (Web Services) from a Web site. Going into this book, I still had no idea what the corollary of a dll or COM object was. And I still don't know whether I have to rewrite my C++ dlls in C# to get them to work. The book hints that I might not have to. But at least if I am willing to rewrite all 45,000 lines of C++ code in C#, I know how to do what I want to do in principle, and that feels very different from where I was at before. Part of the reason that I'm further along now is that I was using ASP.NET 2.0. Version 3.5 has added so many widgets to resolve common problems that it really feels to me from the perspective of a rank beginner like an entirely different beast, though undoubtedly under the hood, it's essentially the same. For example, the beginning ASP.NET 2.0 book I read devoted a whole chapter to Request and Response. There are just a couple references to them in this book, and they're not even mentioned in the index. Version 3.5 has been so structured that you apparently don't need to know even these very basic details. I feel a little like I felt when the event loop disappeared into the bowels of the GUI, never to be referred to again. "Can I trust Microsoft to handle that? Can I just go my merry way writing only event handlers?" It's still too soon to tell for certain, but probably I'll be okay. This is not a reference book. I couldn't easily look up how to add a background image to my master page having forgotten it, and having read it once, I'm now reading it again cover to cover and taking notes to create the reference I need, because I don't even remotely remember it all. And I will need to read the advanced book to get where I want to be. Instead of a reference, you build a fully functional Web site throughout the course of the book. An exercise in chapter 11 may refer to a page you built in Chapter 4, so you absolutely have to follow the entire book from start to finish or you'll be lost. I do think that this is the best approach to learning ASP.NET 3.5, because I really feel like if I pay attention, I can now write a full fledged Web site. I can't see any other way to cover (in 700 pages) ASP.NET controls, user controls, themes, style sheets, skins, master pages, basic C#, debugging, code behind files, Web services, databases, LINQ, security, base pages, validation, AJAX and deployment... to mention most of the biggies. None of these were even mentioned in my ASP.NET 2.0 books, mostly because they didn't exist, I expect. They are all there is to ASP.NET 3.5. You can get whole books on most of these technologies, but I really feel Spaanjaars gives you a serviceable introduction to each of them. I'm also impressed by the considerable planning that must have gone into deciding what order the various tools should be presented in, and consequently how the site should be built up. For example, Cascading Style Sheets are presented before Master Pages, because it's easier to cover the 8-9 ways of modifying them if you don't yet have a master page. In summary, this is the first beginning text on dynamic database driven Web sites that got me past that psychological barrier and convinced me that I am going to be able to migrate my complicated life to the Internet. The text is clear and very well organized. And there are precious few errors. (I submitted most of the typos a previous reviewer complained about, because I liked the book so much I wanted it to be perfect. Sorry for the unintended effect Imar.)