Search Results

Search found 3 results on 1 pages for 'user195910'.

Page 1/1 | 1 

  • ModelBindingContext ModelName

    - by user195910
    Can anyone explain where the ModelName gets populated from? Looked in MSDN documentation and no explaination here. I am creating a custom model binder and within it I get null for the following: var result = bindingContext.ModelName);

    Read the article

  • Asp.NET MVC View with different objects

    - by user195910
    If i have a controller action "Create" that returns a view with the following as the Model type: public class PaymentModel { public Model.SummaryInformation SummaryInformation; public Model.CardDetail CardDetail; } If there is a button on this view that POST's to an action "New" and I want that action to recieve a different object e.g. public class PaymentNewModel { public Model.CardDetail CardDetail; } Is this possible? I do not want to use the same Model when the view is rendered to the Model that is POSTed

    Read the article

1