Professional ASP.NET 3.5 Security, Membership, and Role Management with C# and VB


Book Description

This book is intended for developers who are already familiar with and have a solid understanding of ASP.NET 1.1 and ASP.NET 2.0 security concepts, especially in the areas of forms authentication, page security, and website authorization. It assumes that you have a good understanding of the general functionality of Membership and Role Manager. It is also assumes that you have some familiarity working with ASP.NET AJAX 3.5. The book aims to “peel back the covers” of various ASP.NET security features so you can gain a deeper understanding of the security options available to you. Explaining the new IIS 7.0 and its Integrated mode of execution is also included in the book. This book was written using the .NET 3.5 Framework along with the .NET Framework SPI on both Windows Sever 2008 and Windows Vista. The sample code in the book has been verified to work with .NET 3.5 Framework and .NET 3.5 Framework SPI on Windows Vista. To run all of the samples in the book you will need the following: Windows Server 2008 or Windows Vista Internet Information Services 7.0 (IIS 7.0) Visual Studio 2008 RTM Either SQL Server 2000 or SQL Server 2005 A Window’s Sever 2008 domain running at Windows Server 2008 functional level This book covers many topics and areas in ASP.NET 2.0 and ASP.NET 3.5. It first introduces Internet Information Services 7.0 (IIS 7.0). It goes on to explain in detail the new IIS 7.0 Integrated mode of execution. Next, detailed coverage of how security is applied when the ASP.NET application starts up and when a request is processed in the newly introduced integrated request-processing pipeline is discussed. After this, the book branches out and begins to cover security information for features such as trust levels, forms authentication, page security, and session state. This will show you how you can benefit from the IIS 7.0 Integrated mode to make better use of ASP.NET features. You will also gain an understanding of the lesser known security features in ASP.NET 2.0 and ASP.NET 3.5. In chapter 10 the book changes direction and addresses two security services in ASP.NET 2.0 and ASP.NET 3.5: Membership and Role Manager. You will learn about the provider model that underlies each of these features. The internals of the feature are also discussed, as well as the SQL- and Active Directory-based providers included with them. The discussion of ASP.NET features is continued in chapter 17, which is dedicated to the ASP.NET AJAX 3.5 security integration with ASP.NET 3.5; it will also show how to authenticate and authorize users with JavaScript code written from the client-side. The book closes with a chapter about the best practices ASP.Net developers should follow to protect their applications from attack. Chapter 1 starts by refreshing ideas on application pools and worker processes. It later gets into the major components that make up IIS 7.0. Chapter 2 begins by introducing the advantages of the IIS 7.0 and ASP.NET integrated mode. Chapter 3 gives you a walkthrough of the security processing that both IIS 7.0 and ASP.NET perform in the integrated/unified request-processing pipeline. Chapter 4 defines what an ASP.NET trust level is and how ASP.NET trust levels work to provide secure environments for running web applications. Chapter 5 covers the security features in the 2.0 and 3.5 Frameworks’ configuration systems. Chapter 6 explains ASP.NET 2.0 and ASP.NET 3.5 features for forms authentication. Chapter 7 demonstrates using IIS 7.0 wildcard mappings and ASP.NET 2.0 and ASP.NET 3.5 support for wildcard mappings to share authentication and authorization information with Classic ASP applications. Chapter 8 covers security features and guidance for session state. Chapter 9 describes some lesser known page security features from ASP.NET 1.1 and describes how ASP.NET 2.0 and ASP.NET 3.5 options for securing viewstate and postback events. Chapter 10 gives you an architectural overview of the provider model in both ASP.NET 2.0 and ASP.NET 3.5. Chapter 11 talks about the Membership feature in ASP.NET 2.0 and ASP.NET 3.5 Chapter 12 delves into both the SqlMembershipProvider as well as general database design assumptions that are included in all of ASP.NET 2.0’s and ASP.NET 3.5’s SQL-based features. Chapter 13 covers other membership provider that ships in ASP.NET 2.0 and ASP.NET 3.5-ActiveDirectoryMembershipProvider. Chapter 14 describes the Role Manager feature that provides built-in authorization support for ASP.NET 2.0 and ASP.NET 3.5. Chapter 15 discusses the SqlRoleProvider and its underlying SQL schema. Chapter 16 covers the AuthorizationStoreRoleProvider, which is a provider that maps Role Manager functionality to the Authorization Manager. Chapter 17 discusses how ASP.NET AJAX 3.5 integrates with ASP.NET 3.5 Membership and Role management features through newly introduced web services. Chapter 18 covers the best practices that can be followed to secure ASP.NET applications. Bilal Haidar has authored several online articles for www.aspalliance.com, www.code-magazine.com, and www.aspnetpro.com. He is one of the top posters at the ASP.NET forums. He has been a Microsoft MVP in ASP.NET since 2004 and is also a Microsoft certified trainer. Currently, Bilal works as a senior developer for Consolidated Contractors Company (CCC), whose headquarters are based in Athens, Greece. Stefan Schackow, the previous author of this book, is a Program Manager on the Web Platform and Tools Team at Microsoft. He worked on the new application services stack in Visual Studio 2005 and owned the Membership, Role Manager, Profile, Personalization, and Site Navigation features in ASP.NET 2.0. Currently he is working on Silverlight for Microsoft. Stefan is a frequent speaker at Microsoft developer conferences.




Professional ASP.NET 3.5 SP1 Edition


Book Description

Professional ASP.NET 3.5 SP1 In C# and VB ASP.NET 3.5 brings the power of Visual Studio 2008 along with the multitude of language improvements in C# 2008 and Visual Basic 2008 as well as powerful new technology called LINQ, together with the ASP.NET 2.0 Framework you already know and love. Packed with valuable coverage of ASP.NET 3.5 SP1, this essential resource offers both C# and VB examples throughout the book, and shares new and updated content on the ADO.NET Entity Framework, ADO.NET Dynamic Data, and ADO.NET Data Services. While ASP.NET 3.5 boasts server controls like the ListView and the incredibly flexible GridView, it also includes advancements in AJAX technology combined with JavaScript debugging features in Visual Studio 2008. With this book, a stellar author team covers the new controls in the AJAX toolbox, the back button history, and script combining, and they also examine the new capabilities of WCF including changes to DataContractSerializer. In addition, the accompanying CD-ROM features the entire book in PDF format. What you will learn from this book The concepts underlying the server control and its pivotal role in ASP.NET development How to create templated ASP.NET pages using the master page feature How to work with data from enterprise databases including SQL Server Ways to debug, package, and deploy ASP.NET applications, monitor their health and performance, and handle errors How to retrieve, update, and delete data quickly and logically using LINQ with side-by-side examples comparing LINQ to existing techniques Ways to localize your web site in multiple languages for a world-wide audience Methods for adding AJAX capabilities to your ASP.NET applications The many benefits of the new data access additions Ways to use and extend the Provider Model for accessing data stores, processes, and more What freeware tools you need in Scott Hanselman's ASP.NET Ultimate Developer Tools appendix Who this book is for This book is for programmers and developers who are looking to make the transition to ASP.NET 3.5 SP1 with Visual Studio 2008 and either C# 3.0 (2008) or Visual Basic 9 (2008). CD-ROM includes the full book in PDF format and a selection of 7 Wrox Blox mini e-books including: Internet Explorer 8 and Its Impact on Your ASP.NET Web Sites Jumping from ASP.NET to Silverlight 2 Leverage LINQ in ASP.NET 3.5 Projects Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file.




Beginning ASP.NET 4


Book Description

The definitive programming guide to ASP.NET, by popular author and Microsoft MVP Imar Spaanjaars Updated for ASP.NET 4, this introductory book retains its helpful examples and step-by-step format from the previous version and keeps the style of offering code examples written in both C# and Visual Basic. Beloved author and Microsoft ASP.NET MVP walks you through ASP.NET, Microsoft's technology for building dynamically generated Web pages from database content. You'll discover many improvements that ASP.NET 4 offers over the previous version, such as the ASP.NET MVC framework, Ajax improvements, jQuery support, and more. You'll gradually build a Web site example that takes you through the processes of building basic ASP.NET Web pages, adding features with pre-built server controls, designing consistent pages, displaying data, and more. Popular author and Microsoft ASP.NET MVP Imar Spaanjaars updates you on the latest updates to ASP.NET 4, Microsoft's technology for building dynamic Web pages from database content Shows you how the 4 version differs from ASP.NET 3.5 and reviews its new features, including the ASP.NET MVC framework, various Ajax improvements, jQuery support, and more Spaanjaars's distinct writing style puts you at ease with learning ASP.NET 4.




Professional ASP.NET 3.5


Book Description

In this book, you’ll be introduced to the features and capabilities of ASP.NET 3.5, as well as the foundation that ASP.NET provides. Updated for the latest release of Visual Studio, this new edition adds five hundred pages of great new content compared to the original 2.0 version of the book. Including both printed and downloadable VB and C# code examples, this edition focuses even more on experienced programmers and advanced web development. New coverage includes new chapters on IIS 7 development, LINQ, ASP.NET, Silverlight, and many others.




Beginning ASP.NET Security


Book Description

Programmers: protect and defend your Web apps against attack! You may know ASP.NET, but if you don't understand how to secure your applications, you need this book. This vital guide explores the often-overlooked topic of teaching programmers how to design ASP.NET Web applications so as to prevent online thefts and security breaches. You'll start with a thorough look at ASP.NET 3.5 basics and see happens when you don't implement security, including some amazing examples. The book then delves into the development of a Web application, walking you through the vulnerable points at every phase. Learn to factor security in from the ground up, discover a wealth of tips and industry best practices, and explore code libraries and more resources provided by Microsoft and others. Shows you step by step how to implement the very latest security techniques Reveals the secrets of secret-keeping—encryption, hashing, and not leaking information to begin with Delves into authentication, authorizing, and securing sessions Explains how to secure Web servers and Web services, including WCF and ASMX Walks you through threat modeling, so you can anticipate problems Offers best practices, techniques, and industry trends you can put to use right away Defend and secure your ASP.NET 3.5 framework Web sites with this must-have guide.




Professional ASP.NET 4 in C# and VB


Book Description

This book introduces you to the features and capabilities that ASP.NET 4 offers, and explains the foundation that ASP.NET provides. It covers each major new feature included in ASP.NET 4 in detail. Retaining the unique C# and VB dual language coverage, this edition retains many great features from previous versions, including both printed and downloadable VB and C# code examples. Other expert coverage include IIS and the provider model, site navigation, design, debugging, modules and handlers, Silverlight, CSS, Ajax and the Ajax Control Toolkit, jQuery, and MVC.







Professional ASP.NET 2.0 Security, Membership, and Role Management


Book Description

Experienced developers who are looking to create reliably secure sites with ASP.NET 2.0 will find that Professional ASP.NET 2.0 Security, Membership, and Role Management covers a broad range of security features including developing in partial trust, forms authentication, and securing configuration. The book offers detailed information on every major area of ASP.NET security you’ll encounter when developing Web applications. You’ll see how ASP.NET 2.0 version contains many new built-in security functions compared to ASP.NET 1.x such as Membership and Role Manager, and you’ll learn how you can extend or modify various features. The book begins with two chapters that walk you through the processing ASP.NET 2.0 performs during a web request and the security processing for each request, followed by a detailed explanation of ASP.NET Trust Levels. With this understanding of security in place, you can then begin working through the following chapters on configuring system security, forms authentication, and integrating ASP.NET security with classic ASP including integrating Membership and Role Manager with classic ASP. The chapter on session state looks at the limitations of cookieless session identifiers, methods for heading off session denial of service attacks, and how session state is affected by trust level. After the chapter explaining the provider model architecture in ASP.NET 2.0 and how it is useful for writing custom security providers you go to the MembershipProvider class and configuring the two default providers in the Membership feature, SqlMembershipProvider and ActiveDirectoryMembershipProvider. You'll see how to use RoleManager to make it easy to associate users with roles and perform checks declaratively and in code and wrap up working with three providers for RoleProvider – WindowsTokenRoleProvider, SqlRoleProvider, and AuthorizationStoreRoleProvider (to work with Authorization Manager or AzMan). This book is also available as part of the 5-book ASP.NET 2.0 Wrox Box (ISBN: 0-470-11757-5). This 5-book set includes: Professional ASP.NET 2.0 Special Edition (ISBN: 0-470-04178-1) ASP.NET 2.0 Website Programming: Problem - Design - Solution (ISBN: 0764584642 ) Professional ASP.NET 2.0 Security, Membership, and Role Management (ISBN: 0764596985) Professional ASP.NET 2.0 Server Control and Component Development (ISBN: 0471793507) ASP.NET 2.0 MVP Hacks and Tips (ISBN: 0764597663) CD-ROM with more than 1000 pages of bonus chapters from 15 other .NET 2.0 and SQL Server(TM) 2005 Wrox books DVD with 180-day trial version of Microsoft(r) Visual Studio(r) 2005 Professional Edition




.NET 4 Wrox PDF Bundle


Book Description

The books included in this set are: 9780470502204 Professional ASP.NET 4: in C# and VB: Written by three highly recognized and regarded ASP.NET experts, this book provides comprehensive coverage on ASP.NET 4 with a unique approach featuring examples in both C# and VB, as is the incomparable coverage of core ASP.NET. After a fast-paced refresher on essentials such as server controls, the book delves into expert coverage of all the latest capabilities of ASP.NET 4. 9780470502259 Professional C# 4 and .NET 4: After a quick refresher on C# basics, the author dream team moves on to provide you with details of language and framework features including LINQ, LINQ to SQL, LINQ to XML, WCF, WPF, Workflow, and Generics. Coverage also spans ASP.NET programming with C#, working in Visual Studio 2010 with C#, and more. With this book, you'll quickly get up to date on all the newest capabilities of C# 4. 9780470548653 Professional Visual Studio 2010: This book gets you quickly up to speed on what you can expect from Visual Studio 2010. Packed with helpful examples, this comprehensive guide explains examines the features of Visual Studio 2010, which allows you to create and manage programming projects for the Windows platform. It walks you through every facet of the Integrated Development Environment (IDE), from common tasks and functions to its powerful tools 9780470499832 Visual Basic 2010 Programmer's Reference: This reference guide provides you with a broad, solid understanding of essential Visual Basic 2010 topics and clearly explains how to use this powerful programming language to perform a variety of tasks. As a tutorial, the book describes the Visual Basic language and covers essential Visual Basic topics. The material presents categorized information regarding specific operations and reveals useful tips, tricks, and tidbits to help you make the most of the new Visual Basic 2010. 9780470477229 WPF Programmer's Reference: Windows Presentation Foundation with C# 2010 and .NET 4: Written by a leading expert on Microsoft graphics programming, this richly illustrated book provides an introduction to WPF development and explains fundamental WPF concepts. It is packed with helpful examples and progresses through a range of topics that gradually increase in their complexity. 9780470257029 Professional SQL Server 2008 Programming: This expanded best-seller includes new coverage of SQL Server 2008's new datatypes, new indexing structures, manageability features, and advanced time-zone handling. As an added bonus, also includes Professional SQL Server 2005 Programmers for .NET 4 developers still working in a SQL Server 2005 setting.




Professional ASP.NET 2.0


Book Description

All new, for ASP.NET 2.0, this bestselling book provides experienced developers with real-world examples of the powerful new time-saving, code-saving features in this new version. Seasoned author and International .NET Association founder Bill Evjen along with Scott Hanselman help developers make a smooth transition to this new version of ASP.NET with their clear explanations of even the most dramatic changes. Helpful examples in both VB and C# clearly show how to build ASP.NET 2.0 applications. Some of the key chapters and topics you'll find in this book include: 4 chapters on server controls, including an entire chapter dedicated to the controls that are new to ASP.NET 2.0 A chapter each on the new Master Pages and Themes/Skins features in ASP.NET 2.0 2 chapters on data presentation Data Management with ADO.NET discussing some of the radical ASP.NET 2.0 changes incorporated in ADO.NET Personalization, Membership, and Role Management A complete chapter on Portal Frameworks and the popular new Web Parts functionality of ASP.NET 2.0 Security beyond the built in membership and role management features Caching including the new SQL cache invalidation feature in ASP.NET 2.0 Proper debugging and error handling techniques for your applications Building your own server controls and HttpHandlers Business Objects, Mobile Development, XML Web Services Configuring, Administering, managing, packaging, and deploying ASP.NET 2.0 Applications According to Brian Goldfarb, Microsoft Product Manager - Web Platform and Tools Division, this book "... is a solid one, Professional ASP.NET 2.0 and I recommend to anyone who is serious about working with VS 2005 and ASP.NET 2.0 -- Bill Evjen, Scott Hanselman, Farhan Muhammad, Devin Rader, Srinivasa Sivakumar all did a fantastic job putting together a great read with easy to understand examples and high-quality guidance. This is a must-have for every ASP.NET developers bookshelf (I already have 2 on mine :))"