In my controller, I check for a articleID in the querystring, if it is present, I will render the edit view page, otherwise I will render the add view page.
Now in my edit page, there are times when certain classes in my ViewData might be null.
Put I want to pre-populate textboxes in the edit page.
How can I prepopulate text into fields, but at the same time safe guard against a null object/property?