I just want to ask if it is possible to create a partial view, which accepts the usual type of parameters?
Actually, I am creating an add form that can be used to add different types of objects (i.e. product, employee). Currently, I can make it through a partial view which accepts my product model to present product product form. However, I want to use this form to add my employee.
What's in my mind is to attach the type to render through a query string and check the code that one of them has to present. I tried to do this but it does not seem to be successful.
Can anyone ask me for a solution? Thanks a lot! Cheers!
This is just a suggestion for an alternative approach that can give you your functionality.
For example, declare a visual model object "WidgetModel" with property "N" - they are called Property 1, Property 2, etc.
Map the objects that you Want to pair in the scene, for this simple thing - you can use it to get it very easily. / P>
Now in the view you will be binding on the properties of the Widget Modal Object and there will be no problem in the types.
Personally though, I think I want to live partially!
Hope this gives you some tips.
Comments
Post a Comment