asp.net mvc - mvc - show/hide stuff based on what view it is for a user control -


I am using asp.net mvc. I have a very similar form using a user control for the form, which is such a compose and edit form. And placing it in each scene.

The form of editing this form is slightly different as it has some extra text and a link.

How do I show / show it I will either put it in the model (i.e. "icededod" or "iaditoded" or "isadmode" parameter) or, better yet, through ViewData Pass:

  & lt;% ViewData ["isEditMode"] = true; Html.RenderPartial ("FormView", Model); & Gt%;  

Then just check the IsEditMode value in ViewData


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -