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
Post a Comment