Book description
There's no need to reinvent the wheel every time you run into a problem with ASP.NET's Model-View-Controller (MVC) framework. This concise cookbook provides recipes to help you solve tasks many web developers encounter every day. Each recipe includes the C# code you need, along with a complete working example of how to implement the solution. Learn practical techniques for applying user authentication, providing faster page reloads, validating user data, filtering search results, and many other issues related to MVC3 development.
These recipes help you:
- Restrict access to views with password protection
- Allow users to upload and save a file to your website
- Implement AJAX to allow users to see updated content quickly
- Validate form input to ensure the data you capture is what you expect
- Create thumbnails to preview images rather than view them full-size
- Give your web application the ability to change languages
- Use CAPTCHA to prevent automated programs from completing forms
- Make URLs more user- and search-engine-friendly with the MapRoute function
Publisher resources
Table of contents
- Dedication
- A Note Regarding Supplemental Files
- Preface
-
1. The Recipes
- 1.1. Restricting Access to Views with Password Protection
- 1.2. Automating Generation of Controllers and Views
- 1.3. Validating User Input
- 1.4. Implementing Multiple Languages
- 1.5. Sending a Welcome Email
- 1.6. Retrieving a Forgotten Password
- 1.7. Sorting a List of Results
- 1.8. Paging Through a List of Results
- 1.9. Filtering a List of Results
- 1.10. Searching a List of Results by Keyword
- 1.11. Uploading a File Through a Form
- 1.12. Resizing an Image to Create a Thumbnail
- 1.13. Implementing Ajax to Enhance the User Experience
- 1.14. Submitting a Form with Ajax
- 1.15. Enabling a CAPTCHA
- 1.16. Mobilizing Your Website
- 1.17. Paging Through Content Without the Pages
- 1.18. Displaying Search Results While Typing
- 1.19. Routing Users to a Specific Controller and Action
- 1.20. Caching Results for Faster Page Loads
- 1.21. Going Further
- About the Author
- Copyright
Product information
- Title: 20 Recipes for Programming MVC 3
- Author(s):
- Release date: October 2011
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449309862
You might also like
book
ASP.NET MVC 4 Recipes: A Problem-Solution Approach
ASP.NET MVC 4 Recipes is a practical guide for developers creating modern web applications, cutting through …
book
Adobe® ColdFusion® 9 Web Application Construction Kit, Volume 1: Getting Started
Written by the best known and most trusted name in the ColdFusion community, Ben Forta, The …
book
ASP.NET Core Application Development: Building an application in four sprints (Developer Reference)
Master ASP.NET Core hands-on: from architecture through deployment and beyond This book guides you through the …
book
Pro Spring 3
The agile, lightweight, open-source Spring Framework continues to be the de facto leading enterprise Java application …