MVC3 & Razor Help

Associate
Joined
28 Nov 2004
Posts
1,237
Location
Birmingham
Hi all,
I'm teaching myself this new MVC3 & Razor way of development and I'm liking it a lot at the moment.
I have a small question/problem to get my head around.

I've got a "Person" model (class) and this is bound nicely to a Create view. All is ok here.
I've also got an "Address" model. Each person has an "Address" so I've created a partial view for it which I want to include on my Person Create view. How do I do this?? At the moment I'm not too sure.
 
cheers phill.
I figured it. the instance of the Address model was null so I needed to cater for that. all works ok now and I'm onto my next hurdle!
 
Back
Top Bottom