ASP.NET From Scratch: Controllers and Simple Model Validation


This latest episode continues to delve into the ASP.NET MVC framework by looking at controllers and their role in MVC applications. You will also learn how to perform model validation by implementing the IDataErrorInfo interface.

Also available in this series:

  1. ASP.NET from Scratch: Getting Started
  2. ASP.NET from Scratch: Improving an Email Form
  3. ASP.NET from Scratch: Class Inheritance
  4. ASP.NET from Scratch: SQL Server
  5. ASP.NET from Scratch: Master Pages
  6. ASP.NET from Scratch: MVC
  7. ASP.NET from Scratch: Routing in MVC
  8. ASP.NET From Scratch: Controllers and Simple Model Validation
  9. ASP.NET from Scratch: Views
  10. ASP.NET from Scratch: Views with MVC

Related Posts
  • Code
    Preventing Code InjectionCsrf dotnet retina preview
    Often, websites seem to exist primarily to put something into a database in order to pull it out later. While other database methods, such as NoSQL, have gained popularity in recent years, data for many websites still resides in the traditional SQL database. This data often consists of valuable personal information such as credit card numbers and other personal information of interest to identity thieves and criminals. Hackers therefore always look to get this data. One of the most common targets of these attacks is the SQL databases that lie behind many web applications through a process of SQL Injection.Read More…
  • Code
    Validation and Exception Handling: From the UI to the BackendProcedural to oop php retina preview
    Sooner or later in your programming career you will be faced with the dilemma of validation and exception handling. This was the case with me and my team also. A couple or so years ago we reached a point when we had to take architectural actions to accommodate all the exceptional cases our quite large software project needed to handle. Below is a list of practices we came to value and apply when it comes to validation and exception handling.Read More…
  • Code
    Creative Coding
    Using WordPress for Web Application Development: The Conceptual ModelApplication foundation 400
    With people beginning to realize WordPress' potential as an application foundation rather than just a content management system or a blogging platform, this series is focusing on just how WordPress can be used for such projects.Read More…
  • Code
    Creative Coding
    Using WordPress for Web Application Development: Rethinking ArchitectureApplication foundation 400
    In this series, we're in the process of talking about how we can build web applications using WordPress. And though this isn't a technical series in which we'll be looking at code, we are covering topics such as frameworks, foundations, design patterns, architectures, and so on.Read More…
  • Code
    JavaScript & AJAX
    Introduction to Sails.jsSails preview 400 2
    Sails is a Javascript framework designed to resemble the MVC architecture from frameworks like Ruby on Rails. It makes the process of building Node.js apps easier, especially APIs, single page apps and realtime features, like chat.Read More…
  • Code
    ASP.NET from Scratch: MVCCode
    Lesson 6 ditches WebForms in favor of ASP.NET MVC. In this introduction, you’ll get a taste of ASP.NET MVC and recreate a EmailForm application using the MVC framework.Read More…