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

asp.net - Change the driver in the connection string to a data source in VB.Net -

Getting started consuming web services in a Ruby on Rails 3 application -

objective c - iPhone and it's wireless area -