Pro ASP.NET 4 in C# 2010

4th Edition

By Matthew MacDonald , Adam Freeman

Pro ASP.NET 4 in C# 2010 Cover Image

ASP.NET 4 is the principal standard for creating dynamic web pages on the Windows platform. Pro ASP.NET 4 in C# 2010 raises the bar for high-quality, practical advice on learning and deploying Microsoft's dynamic web solution.

Full Description

  • ISBN13: 978-1-4302-2529-4
  • 1616 Pages
  • User Level: Intermediate to Advanced
  • Publication Date: June 28, 2010
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $59.99
  • eBook Price: $41.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

ASP.NET 4 is the principal standard for creating dynamic web pages on the Windows platform. Pro ASP.NET 4 in C# 2010 raises the bar for high-quality, practical advice on learning and deploying Microsoft's dynamic web solution.

This edition is updated with everything you need to master up to version 4 of ASP.NET, including coverage of ASP.NET MVC, ASP.NET AJAX 4, ASP.NET Dynamic Data, and Silverlight 3.

Seasoned .NET professionals Matthew MacDonald and Mario Szpuszta explain how you can get the most from these groundbreaking technologies. They cover ASP.NET 4 as a whole, illustrating both the newer features and the functionality carried over from previous versions of ASP. This book will give you the knowledge you need to code real ASP.NET 4 applications in the best possible style.

What you’ll learn

  • Understand why ASP.NET 4 is so special, what its fundamental principles are, the basics of Visual Studio, and how ASP.NET controls are created and how they fit into ASP.NET pages, ultimately creating full applications.
  • Become familiar with ASP.NET MVC, one of the biggest additions to ASP.NET 4, and understand how to use it and integrate it within your existing ASP.NET applications.
  • Discover the intricacies of ADO.NET and how to perform data binding to many sources, from databases to file streams to XML.
  • Learn the various forms of security available and how to best apply them. Once considered the Achilles' heel of all Windows web applications, security has vastly improved and is now a cornerstone of ASP.NET 4.
  • Examine in detail advanced user interface techniques, including user controls, customer server controls, client-side JavaScript, GDI+, and Silverlight 3.
  • Understand how to work with web services, an important skill in an increasingly connected world.
  • Use ASP.NET AJAX 4, with an emphasis on contemporary web development techniques.
  • Perform development using Internet Information Services 7, Microsoft's premier web hosting platform.

Table of Contents

Table of Contents

  1. Introducing ASP.NET
  2. Visual Studio
  3. Web Forms
  4. Server Controls
  5. ASP.NET Applications
  6. State Management
  7. ADO.NET Fundamentals
  8. Data Components and the DataSet
  9. Data Binding
  10. Rich Data Controls
  11. Caching and Asynchronous Pages
  12. Files and Streams
  13. LINQ
  14. XML
  15. User Controls
  16. Themes and Master Pages
  17. Website Navigation
  18. Website Deployment
  19. The ASP.NET Security Model
  20. Forms Authentication
  21. Membership
  22. Windows Authentication
  23. Authorization and Roles
  24. Profiles
  25. Cryptography
  26. Custom Membership Providers
  27. Custom Server Controls
  28. Graphics, GDI+, and Charting
  29. JavaScript and Ajax Techniques
  30. ASP.NET AJAX
  31. Portals with Web Part Pages
  32. MVC
  33. Dynamic Data
  34. Silverlight
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

On page XXXV:
"Part 6: Building Desktop User Interfaces using WPF
.NET 3.0 introduced programmers to an amazing API called Windows Presentation Foundation (WFP)."

Abbreviation in brackets should be WPF not WFP.

On page 35:
In Figure 2-7 I think that the text "Click here to start deploying the web application (see Chapter 18)" is not pointing at the correct icon.

On page 51:

Figure 2-19 on page 51 is incorrect. It is the same as figure 2-20 on the next page.

On page 116:
Cut and paste error in Table 3-5: ContentType description is actually that for BufferOutput from previous table.

On page 117:

In the second paragraph, there is a sentence exactly like this:
By Default, even though the Redirect() method redirects the user and closes the connection, any remaining code in the method will still run, along with other page events....

But there is a problem with this information. By default, when the Redirect() method is called, the page execution will be aborted, any remaining code in the method won't run.


On page 201:

in the second last paragraph "To use the WebConfigurationSettings class" should be ""To use the WebConfigurationManager class".

On page 205:
The brackets in the note at the bottom of the page reads "(such as read read access ..." i.e the word read is repeated. Presumably this shoud be "read write"?

On page 223:

The USL in the screen shot is for the wrong chapter. It should be chapter 5. This is probably from a previous edition of the book.

On page 295:

Page 295 and every other page that refers to HtmlContent.text = .....

Error message "HtmlContent does not exist in current context".

Regardless of namespace used this does not seem to work, suggested namespaces do not include this reference.

On page 306:

cmd.Parameters.AddWithValue("@FirstName" firstName);

comma bw the parameter name and its value is missing

On page 332:
int empID = db.InsertEmployee(
new EmployeeDetails(0, "Mr.", "Bellinaso", "Marco"));;


Not a critical error, but the values are passed to the constructor in the wrong order. The title of courtesy should come after the first name. This will make Figure 8-2 look correct.

On page 391:

<asp:DetailsView ID="DetailsView1" runat="server"
DataSourceID="sourceEmployees" />

There is no data source sourceEmployees declared in the previous text. Should be probably sourceEmployee

On page 495:

To set a sliding expiration policy, set the absoluteExpiration parameter to
DateTime.Max.

*DateTime.MaxValue

On page 500:

To fill the grid, you use the following SqlDataSource: [...]


* looks like EnableCaching="True" is missing in the example code

On page 847:

After following the required steps and attempting to save the Table Relationships I get an error saying

"Inventory' table saved successfully
'Customers' table saved successfully
'Orders' table
- Unable to create relationship 'FK_Orders_Inventory'.
The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_Orders_Inventory". The conflict occurred in database "AutoLot", table "dbo.Inventory", column 'CarID'.