Link Details

Link 85131 thumbnail
User 236496 avatar

By powerrush
via blog.troyd.net
Submitted: Jun 04 2008 / 14:35

An updated version of ASP.NET MVC Precondition Filter that is now part of MVCContrib ...
  • 4
  • 0
  • 175
  • 6

Comments

Add your comment
User 236496 avatar

powerrush replied ago:

0 votes Vote down Vote up Reply

'I often find the need to check for the existence of a parameter passed to a web page, such as an ID, and also often need to check if the ID is valid as well (e.g.: a valid primary key).

In the spirit of Design By Contract, I would consider this check to be a sort of "Request By Contract", at least insofar as the concept of a "precondition".'

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (4)



Voters Against This Link (0)