Author: captbiele | Posted on: 9/23/2008 10:19:34 AM | Views : 1268

I'm having an issue with a very common scenario... I can't find a solution, so I'm probably missing something here :s

I'm curious what the best way is to handle an empty model.
I put most of the presentation logic in the .aspx. Occasionally, the model is queried from the .cs file as well.
What if a user modifies the id in "/Products/Modify/ID" to an non-existing one?
Should I really put null-checks everywhere? or is there a more generic method to handle this?

I don't think so, but strangely enough I have seen very little null checking in any sample code....

so confused.... any help would be appreciated!

regards ...

Go to the complete details ...