.Net Framework 4.5 Expert Programming Cookbook

.Net Framework 4.5 Expert Programming Cookbook
eBook: $29.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print + free eBook + free PacktLib access to the book: $79.98    Print cover: $49.99
save 44%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Explores the advanced features of core .Net concepts in step-by-step detail
  • Understand great ways to enhance your website by securing against cross-site scripting attacks, enabling third party authentications, and embedding maps
  • Covers interesting real world projects with ASP.net, Silverlight, ADO.net, and Entity Framework

Book Details

Language : English
Paperback : 276 pages [ 235mm x 191mm ]
Release Date : January 2013
ISBN : 1849687420
ISBN 13 : 9781849687423
Author(s) : A.P. Rajshekhar
Topics and Technologies : All Books, Application Development, Cookbooks, Enterprise, Microsoft, .NET

Table of Contents

Chapter 1: Core .NET Recipes
Chapter 2: Application Events and Windows Forms
Chapter 3: Threading and Parallel Programming
Chapter 4: ASP.NET Recipes – I
Chapter 5: ADO.NET Recipes
Chapter 6: WCF Recipes
Chapter 7: WPF Recipes
Chapter 8: ASP.NET Recipes – II
Chapter 9: Silverlight Recipes
Chapter 10: Entity Framework Recipes
  • Chapter 1: Core .NET Recipes
    • Introduction
    • Implementing the validation logic using the Repository pattern
    • Creating a custom validation attribute by extending the validation data annotation
    • Using XML to generate a localized validation message
    • Extending the validation attribute for localization
    • Creating custom attributes
    • Processing custom attributes via reflection
    • Using asynchronous file I/O for directory-to-directory copy
    • Accessing JSON using dynamic programming
    • Chapter 2: Application Events and Windows Forms
      • Introduction
      • Creating an event that can have generic values as payload
      • Creating a table layout that can dynamically add or remove rows based on the size of the collection
      • Creating DataGridView dynamically
      • Creating a video player using DirectX and Windows Forms
      • Chapter 3: Threading and Parallel Programming
        • Introduction
        • Creating a shared resource
        • Handling Producer-Consumer race conditions
        • Handling background threads in Windows Forms
        • Handling threads in WPF
        • Using parallel programming to make bulk image processing faster
        • Chaining two parallelized bulk image processing operations
        • Chapter 4: ASP.NET Recipes – I
          • Introduction
          • Creating a user registration page using HTML5 controls
          • Saving a draft of a user registration page using HTML5 client storage
          • Binding objects to controls using strongly-typed data controls
          • Implementing communication between an ASPX page and a Silverlight application
          • Chapter 5: ADO.NET Recipes
            • Introduction
            • Saving large files (BLOB) in MS SQL Server using ADO.NET
            • Retrieving large files (BLOB) from SQL Server using ADO.NET
            • Using transactions to maintain database consistency when saving multiple files
            • Using DataSet to modify custom XML configuration files
            • Chapter 6: WCF Recipes
              • Introduction
              • Implementing custom binding in WCF
              • Creating a WCF REST service
              • Handling exceptions using FaultContract and FaultException
              • Uploading files using Stream
              • Securing a service using role-based security
              • Chapter 7: WPF Recipes
                • Introduction
                • Implementing the Model and Repository patterns
                • Implementing View Model
                • Implementing View commands and binding data to View
                • Using the live data shaper for live sorting
                • Playing videos using MediaElement
                • Using Ribbon control to display the video player controls
                • Chapter 8: ASP.NET Recipes – II
                  • Introduction
                  • Preventing cross-site injection using the anti-XSS library
                  • Adding Google Map functionality using Map Helper
                  • Third-party authentication of users using Google
                  • Implementing unobtrusive validation
                  • Chapter 9: Silverlight Recipes
                    • Introduction
                    • Using Pivot control to present asset data
                    • Accessing webcams
                    • Using client-side storage for saving a draft of the user registration data
                    • Chapter 10: Entity Framework Recipes
                      • Introduction
                      • Joining two entities using LINQ
                      • Uploading files using Entity Framework and stored procedures
                      • Managing connections manually for long-running tasks
                      • Using functions that return tables as return values

                      A.P. Rajshekhar

                      A.P. Rajshekhar, Senior Developer with Red Hat, has more than 7 years of experience in IT, having worked on applications ranging from enterprise-level web applications and game development to android applications. His endeavors include development of Learning Management System, Health Systems, Supply Management Solution, and Xbox-based games. He has extensive knowledge of different technologies (SOA, Portal, Java Persistence, and .NET Persistence) and platforms (Sharepoint and JBoss EAP). He is also the author of Building Dynamic Web 2.0 Websites with Ruby on Rails, Packt Publishing, that was in Amazon's top 50 in Web 2.0 for 6 months. Apart from that he has also contributed to DevShed Portal on topics ranging from server-side development (JEE/.NET/RoR) to mobile (Symbian/Android-based development) and game development (SDL and OpenGL) with a total readership of more than 3 million. He is currently ranked among the top 10 authors on DevShed. You can find out about his interests on his blogs – http://aprajshekhar.wordpress.com and http://sententiasupervicis.wordpress.com.

                      Code Downloads

                      Download the code and support files for this book.

                      Submit Errata

                      Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                      - 5 submitted: last submission 29 Jan 2013

                      Sample chapters

                      You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                      Frequently bought together

                      .Net Framework 4.5 Expert Programming Cookbook +    Mastering Magento Theme Design =
                      50% Off
                      the second eBook
                      Price for both: $43.05

                      Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                      What you will learn from this book

                      • Create metadata-driven code, including properties, events, and custom attributes
                      • Understand multi-threading, thread-safety, and the parallel framework extensions to avoid threading pitfalls in your Window Forms, WPF, and Silverlight applications
                      • Implement .NET patterns in application design, assessing a given pattern’s fit in a given context and current state of .NET patterns
                      • Create secured and REST based WCF services
                      • Learn new controls such as Ribbon Control and live data shaper to customize your applications
                      • Use advanced concepts of Application Events and Windows Forms to create a re-usable Window Forms component
                      • Understand new features of ASP.Net websites to enable Google/Facebook SSO based authentication and add non-obstructive validation along with embedding maps in your websites

                      In Detail

                      Net is an architecture neutral and programming language agnostic framework that caters to all requirements, varying from business solutions to multiplayer online 3D games. Version 4.5 added many new features to help with the development of robust and user-friendly solutions. This book will teach you the new features as well as the advanced concepts of different .Net components.

                      ".Net Framework 4.5 Expert Programming Cookbook" will teach you about the advanced concepts and new features of the core framework, Window Forms, threading, and parallel programming, ASP.Net, Silverlight, WCF, WPF, ADO.Net, and Entity Framework using a real life problem/solution approach with a hands-on style.

                      This book takes a hands-on approach in teaching you how to use the new as well as advanced features of the .Net framework 4.5. Each topic will teach you how to use a specific feature of .Net to solve a real world problem or scenario. You will learn how to use metadata driven programming, creating custom events with payloads, adding parallel constructs to your applications, using strict data bound controls in ASP.Net, enabling third party authentication and embedding maps, among many other key skills.

                      <html />


                      ".Net Framework 4.5 Expert Programming Cookbook" is a concise and practical cookbook with advanced recipes which demonstrate the new functionality of .NET Framework 4.5.

                      Who this book is for

                      If you are a .NET developer and would like to learn the new features in .NET 4.5, then this book is just for you. ".Net Framework 4.5 Expert Programming Cookbook" gives developers with a basic to intermediate knowledge a high-level overview and clear understanding of what the .NET 4.5 Framework provides.

                      Code Download and Errata
                      Packt Anytime, Anywhere
                      Register Books
                      Print Upgrades
                      eBook Downloads
                      Video Support
                      Contact Us
                      Awards Voting Nominations Previous Winners
                      Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                      Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software