ASP.NET

Image

You’ve run into this issue numerous times. You are developing an ASP.NET application, and you need to incorporate functionality that comes prepackaged in SharePoint. Wikis, blogs, document management, user authentication, access management—common needs across a variety of solutions. You know there is a way to integrate SharePoint's functionality within ASP.NET solutions, but you don’t know how to develop it.

Without guidance and examples, interacting with underlying SharePoint components can be challenging, and working with the different SharePoint APIs is complicated. This book introduces you to a variety of techniques to master the art of developing ASP.NET applications that are built upon a SharePoint foundation. You’ll explore integration with SharePoint components, configuration management, Code Access Security, feature packaging, proper use of SharePoint APIs, and advanced deployment techniques. Pro ASP.NET SharePoint 2010 Solutions walks you through all of the steps needed to successfully build and deploy ASP.NET solutions within the SharePoint platform.

What you’ll learn

  • How to use SharePoint as a development platform
  • How to build SharePoint features such as authentication, document management, and wikis and blogs into an ASP.NET application
  • How to migrate an existing application from ASP.NET into SharePoint
  • Understand the SharePoint / .NET / IIS implementation
  • Different approaches to packaging ASP.NET within SharePoint

Who this book is for

This book is for ASP.NET developers who want to incorporate the functionality of SharePoint into their applications. Readers familiar with either ASP.NET development or with SharePoint will find valuable information which will greatly enhance their solutions and allow them to build solid, professional applications with minimal effort.

Image

A practical guide to securing ASP.NET sites

Beginning ASP.NET Security is for novice to intermediate ASP.NET programmers and provides a step-by-step solution to securing each area of ASP.NET development. Rather than approaching security from a theoretical direction, MVP Barry Dorrans shows you examples of how everyday code can be attacked, and describes the steps necessary for defense. Inside, you’ll learn how you can defend your ASP.NET applications using the .NET framework, industry patterns and best practices, code libraries and resources provided by Microsoft and others.

Beginning ASP.NET Security:

  • Explores issues with user input including validation, cross-site scripting (XSS) and cross-site request forgery (CSRF)

  • Teaches how to securely access your database and defend against SQL injection attacks

  • Shares techniques for keeping secrets, including encryption, hashing and preventing information leaks

  • Examines methods for authenticating and authorizing users, including ASP.NET membership providers and preventing cookie theft

  • Shares tips for securing your web server, including how ASP.NET uses trust levels and locking down IIS

  • Unveils ways to securely use WCF web services

  • Presents security with the Microsoft ASP.NET Ajax framework and Silverlight

  • Includes an overview of security with the Microsoft MVC framework

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.

wrox.com

Programmer Forums

Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world.

Code Downloads

Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use.

Read More

Find articles, ebooks, sample chapters and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.

This Wrox Blox is for .NET developers who already have experience developing web applications with ASP.NET MVC and want to learn the new features introduced in the new release of ASP.NET MVC. ASP.NET MVC 2 has been built with the goal to increase productivity and make ASP.NET MVC ready for enterprise development. This Wrox Blox guides the reader through the new features by explaining how to use data scaffolding and automatic validation, how to write custom validators, how to create multi-area projects, and how and when to use async controllers. It also covers the new automatic HTML Encoding feature introduced in ASP.NET 4 and how it helps increasing the security of ASP.NET MVC web applications. In addition, it provides examples built both with Visual Studio 2010 and with the still supported Visual Studio 2008.

Table of Contents

Introducing ASP.NET MVC 2 1
Runs on Visual Studio 2008 and Visual Studio 2010 2

Templated Helpers and Model Metadata 2
HiddenInputAttribute 5
How to Write Custom Templates 7
Validation 8
Client-Side Validation 10
Custom Validation Rules 10

Areas 15

Asynchronous Controllers 18
Why Asynchronous Operations Matter 18
The Anatomy of an Asynchronous Controller 18
How to Implement an Async Controller 19
When to Use an Async Controller 21

RenderAction and Child Actions 22

Strongly Typed UI Helpers 24

Enhancements to ModelBinders 25
Default Value 25
Increasing Security with HTTPS 26
Avoiding the JSON Array Attack 26
Short Notation for AcceptVerbs Attribute 27
Overriding the HTTP Verb 27
Binary Binding 28

Automatic HTML-Encoding 29

Enhanced Visual Studio Tooling 30

Summary 31

About Simone Chiaretta 32

Book Details

* Paperback: 35 pages
* Publisher: Wrox (May, 2010)
* Language: English
* ISBN-13: 978-0470767481

* File Size: 9.4 MiB

Image

Over 70 clear and incredibly effective recipes to get the most out of the many tools and features of the ASP.NET MVC framework

  • Solutions to the most common problems encountered with ASP.NET MVC development
  • Build and maintain large applications with ease using ASP.NET MVC
  • Recipes to enhance the look, feel, and user experience of your web applications
  • Expand your MVC toolbox with an introduction to lots of open source tools
  • Part of Packt's Cookbook series: Each recipe is a carefully organized sequence of instructions to complete the task as efficiently as possible

In Detail

ASP.NET MVC, one of the latest web development platforms from Microsoft, brings the power of MVC programming to ASP.NET development. It simplifies the task of application development and maintenance for developers. However, ASP.NET MVC is filled with so many features that developers end up looking for solutions to the many problems that are encountered in their routine development tasks.ASP.NET MVC 2 Cookbook will provide solutions for the very specific problems that are encountered while developing applications with the ASP.NET MVC platform. It consists of many recipes containing step-by-step instructions that guide developers to effectively use the wide array of tools and features of ASP.NET MVC platform for web development

ASP.NET MVC Cookbook is a collection of recipes that will help you to perform your routine development tasks with ease using the ASP.NET MVC platform. In this book you will be walked through the solution to several specific web application development problems. Each recipe will walk you through the creation of a web application, setting up any Visual Studio project requirements, adding in any external tools, and finally the programming steps needed to solve the problem. The focus of the book is to describe the solution from start to finish.

The book starts off with recipes that demonstrate how to work effectively with views and controllers - two of the most important ingredients of the ASP.NET MVC framework. It then gradually moves on to cover many advanced routing techniques. Considering the importance of having a consistent structure to the site, the book contains recipes to show how to build a consistent UI and control its look with master pages. It also contains a chapter that is packed with many recipes that demonstrate how to gain control of data within a view.

As the book progresses through some exciting recipes on performing complex tasks with forms, you will discover how easy it is to work with forms to jazz up the look of your web site. Building large applications with ease is one of the prime features of the MVC model. Therefore, this book also focuses on tools and features that make building large applications easier to manage. As data plays an important role in the MVC architecture, there are ample recipes dedicated to cover data validation, access, and storage techniques. Finally, the book demonstrates how to enhance the user experience of your visitors by controlling the data at the application, session, caching, and cookie level.

By the end of this book, you will have explored a wide array of tools and features available with the ASP.NET MVC platform

A fast-paced cookbook with recipes covering all that you wanted to know about developing with ASP.NET MVC

What you will learn from this book

  • Get to grips with views and build view content from the data passed
  • Work with actions and controllers to perform some important tasks such as creating a CAPTCHA system and generating a PDF order summary
  • Get a handle on complex routing issues such as using wild card parameters to support slug URLs
  • Create and use master pages to control application wide formatting
  • Handle the creation of master-detail pages with AJAX modal pop-ups
  • Use templated helpers, model binding, and areas to build large-scale applications with ease
  • Perform various validations to ensure that the data entered is correct
  • Access and store data with the different techniques available in ASP.NET MVC application development
  • Manage the data at the application, site, caching, and cookie level
  • Keep track of the number of visitors and maintain their information while they are at your site

Approach

Written in cookbook style, this book offers solutions to all common web development problems through recipes. Each recipe contains step-by-step instructions followed by the analysis of what was done in each task and other useful information. The book is designed so that you can read it chapter by chapter, or you can look at the list of recipes and refer to them in no particular order.

Who this book is written for

This book is particularly written for web developers looking to transfer their knowledge from the ASP.NET Web Forms way of doing things to the ASP.NET MVC framework. As this book targets readers of various experience levels, you should be able to find recipes of a basic, intermediate, and advanced nature. Regardless of your experience level, each recipe will walk you through the solution in a step by step manner that anyone should be able to follow.

Image

Over 70 clear and incredibly effective recipes to get the most out of the many tools and features of the ASP.NET MVC framework

  • Solutions to the most common problems encountered with ASP.NET MVC development
  • Build and maintain large applications with ease using ASP.NET MVC
  • Recipes to enhance the look, feel, and user experience of your web applications
  • Expand your MVC toolbox with an introduction to lots of open source tools
  • Part of Packt's Cookbook series: Each recipe is a carefully organized sequence of instructions to complete the task as efficiently as possible

In Detail

ASP.NET MVC, one of the latest web development platforms from Microsoft, brings the power of MVC programming to ASP.NET development. It simplifies the task of application development and maintenance for developers. However, ASP.NET MVC is filled with so many features that developers end up looking for solutions to the many problems that are encountered in their routine development tasks.ASP.NET MVC 2 Cookbook will provide solutions for the very specific problems that are encountered while developing applications with the ASP.NET MVC platform. It consists of many recipes containing step-by-step instructions that guide developers to effectively use the wide array of tools and features of ASP.NET MVC platform for web development

ASP.NET MVC Cookbook is a collection of recipes that will help you to perform your routine development tasks with ease using the ASP.NET MVC platform. In this book you will be walked through the solution to several specific web application development problems. Each recipe will walk you through the creation of a web application, setting up any Visual Studio project requirements, adding in any external tools, and finally the programming steps needed to solve the problem. The focus of the book is to describe the solution from start to finish.

The book starts off with recipes that demonstrate how to work effectively with views and controllers - two of the most important ingredients of the ASP.NET MVC framework. It then gradually moves on to cover many advanced routing techniques. Considering the importance of having a consistent structure to the site, the book contains recipes to show how to build a consistent UI and control its look with master pages. It also contains a chapter that is packed with many recipes that demonstrate how to gain control of data within a view.

As the book progresses through some exciting recipes on performing complex tasks with forms, you will discover how easy it is to work with forms to jazz up the look of your web site. Building large applications with ease is one of the prime features of the MVC model. Therefore, this book also focuses on tools and features that make building large applications easier to manage. As data plays an important role in the MVC architecture, there are ample recipes dedicated to cover data validation, access, and storage techniques. Finally, the book demonstrates how to enhance the user experience of your visitors by controlling the data at the application, session, caching, and cookie level.

By the end of this book, you will have explored a wide array of tools and features available with the ASP.NET MVC platform

A fast-paced cookbook with recipes covering all that you wanted to know about developing with ASP.NET MVC

What you will learn from this book

  • Get to grips with views and build view content from the data passed
  • Work with actions and controllers to perform some important tasks such as creating a CAPTCHA system and generating a PDF order summary
  • Get a handle on complex routing issues such as using wild card parameters to support slug URLs
  • Create and use master pages to control application wide formatting
  • Handle the creation of master-detail pages with AJAX modal pop-ups
  • Use templated helpers, model binding, and areas to build large-scale applications with ease
  • Perform various validations to ensure that the data entered is correct
  • Access and store data with the different techniques available in ASP.NET MVC application development
  • Manage the data at the application, site, caching, and cookie level
  • Keep track of the number of visitors and maintain their information while they are at your site

Approach

Written in cookbook style, this book offers solutions to all common web development problems through recipes. Each recipe contains step-by-step instructions followed by the analysis of what was done in each task and other useful information. The book is designed so that you can read it chapter by chapter, or you can look at the list of recipes and refer to them in no particular order.

Who this book is written for

This book is particularly written for web developers looking to transfer their knowledge from the ASP.NET Web Forms way of doing things to the ASP.NET MVC framework. As this book targets readers of various experience levels, you should be able to find recipes of a basic, intermediate, and advanced nature. Regardless of your experience level, each recipe will walk you through the solution in a step by step manner that anyone should be able to follow.

This Wrox Blox is for .NET developers who already have experience developing web applications with ASP.NET MVC and want to learn the new features introduced in the new release of ASP.NET MVC. ASP.NET MVC 2 has been built with the goal to increase productivity and make ASP.NET MVC ready for enterprise development. This Wrox Blox guides the reader through the new features by explaining how to use data scaffolding and automatic validation, how to write custom validators, how to create multi-area projects, and how and when to use async controllers. It also covers the new automatic HTML Encoding feature introduced in ASP.NET 4 and how it helps increasing the security of ASP.NET MVC web applications. In addition, it provides examples built both with Visual Studio 2010 and with the still supported Visual Studio 2008.

Table of Contents

Introducing ASP.NET MVC 2 1
Runs on Visual Studio 2008 and Visual Studio 2010 2

Templated Helpers and Model Metadata 2
HiddenInputAttribute 5
How to Write Custom Templates 7
Validation 8
Client-Side Validation 10
Custom Validation Rules 10

Areas 15

Asynchronous Controllers 18
Why Asynchronous Operations Matter 18
The Anatomy of an Asynchronous Controller 18
How to Implement an Async Controller 19
When to Use an Async Controller 21

RenderAction and Child Actions 22

Strongly Typed UI Helpers 24

Enhancements to ModelBinders 25
Default Value 25
Increasing Security with HTTPS 26
Avoiding the JSON Array Attack 26
Short Notation for AcceptVerbs Attribute 27
Overriding the HTTP Verb 27
Binary Binding 28

Automatic HTML-Encoding 29

Enhanced Visual Studio Tooling 30

Summary 31

About Simone Chiaretta 32

Book Details

* Paperback: 35 pages
* Publisher: Wrox (May, 2010)
* Language: English
* ISBN-13: 978-0470767481

* File Size: 9.4 MiB

Image

A practical guide to securing ASP.NET sites

Beginning ASP.NET Security is for novice to intermediate ASP.NET programmers and provides a step-by-step solution to securing each area of ASP.NET development. Rather than approaching security from a theoretical direction, MVP Barry Dorrans shows you examples of how everyday code can be attacked, and describes the steps necessary for defense. Inside, you’ll learn how you can defend your ASP.NET applications using the .NET framework, industry patterns and best practices, code libraries and resources provided by Microsoft and others.

Beginning ASP.NET Security:

  • Explores issues with user input including validation, cross-site scripting (XSS) and cross-site request forgery (CSRF)

  • Teaches how to securely access your database and defend against SQL injection attacks

  • Shares techniques for keeping secrets, including encryption, hashing and preventing information leaks

  • Examines methods for authenticating and authorizing users, including ASP.NET membership providers and preventing cookie theft

  • Shares tips for securing your web server, including how ASP.NET uses trust levels and locking down IIS

  • Unveils ways to securely use WCF web services

  • Presents security with the Microsoft ASP.NET Ajax framework and Silverlight

  • Includes an overview of security with the Microsoft MVC framework

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.

wrox.com

Programmer Forums

Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world.

Code Downloads

Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use.

Read More

Find articles, ebooks, sample chapters and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.

Image

You’ve run into this issue numerous times. You are developing an ASP.NET application, and you need to incorporate functionality that comes prepackaged in SharePoint. Wikis, blogs, document management, user authentication, access management—common needs across a variety of solutions. You know there is a way to integrate SharePoint's functionality within ASP.NET solutions, but you don’t know how to develop it.

Without guidance and examples, interacting with underlying SharePoint components can be challenging, and working with the different SharePoint APIs is complicated. This book introduces you to a variety of techniques to master the art of developing ASP.NET applications that are built upon a SharePoint foundation. You’ll explore integration with SharePoint components, configuration management, Code Access Security, feature packaging, proper use of SharePoint APIs, and advanced deployment techniques. Pro ASP.NET SharePoint 2010 Solutions walks you through all of the steps needed to successfully build and deploy ASP.NET solutions within the SharePoint platform.

What you’ll learn

  • How to use SharePoint as a development platform
  • How to build SharePoint features such as authentication, document management, and wikis and blogs into an ASP.NET application
  • How to migrate an existing application from ASP.NET into SharePoint
  • Understand the SharePoint / .NET / IIS implementation
  • Different approaches to packaging ASP.NET within SharePoint

Who this book is for

This book is for ASP.NET developers who want to incorporate the functionality of SharePoint into their applications. Readers familiar with either ASP.NET development or with SharePoint will find valuable information which will greatly enhance their solutions and allow them to build solid, professional applications with minimal effort.

Pages

Subscribe to RSS - ASP.NET