20 Recipes for Programming MVC 3: Faster and Smarter Web Development

20 Recipes for Programming MVC 3: Faster and Smarter Web Development

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

Table of contents

Table of Contents......Page 7
Prerequisites......Page 9
Tools......Page 10
Safari Books Online......Page 11
How to Contact Us......Page 12
Discussion......Page 13
Solution......Page 17
Discussion......Page 18
Problem......Page 21
Discussion......Page 22
Discussion......Page 25
See Also......Page 32
Discussion......Page 33
Problem......Page 36
Discussion......Page 37
Problem......Page 42
Discussion......Page 43
Solution......Page 46
Discussion......Page 47
Solution......Page 51
Discussion......Page 52
Discussion......Page 57
Discussion......Page 62
Discussion......Page 69
Discussion......Page 72
Discussion......Page 79
Discussion......Page 86
Discussion......Page 90
See Also......Page 96
Discussion......Page 97
Solution......Page 101
Discussion......Page 102
Solution......Page 106
Discussion......Page 107
Discussion......Page 113
1.21 Going Further......Page 118

Details

  • Author: James Munro
  • Publication Date: 2011
  • Publisher: O`Reilly Media
  • ISBN-10: 1449309860
  • ISBN-13: 9781449309862
  • Pages: 120
  • Format: pdf
  • Size: 5.7M
Download Now