c# - Update the views, after updating a model -


i have created model name, email, phone no properties , created views create, edit, delete , index. these working fine.

now have added property in model address. want that, there method that, after adding property in model, newly added property automatic add in respective views.

can this?

there way applicable if view generated using html helper classes. view should typed.

@html.editorformodel() 

this html helper automatically update , genatrate required input fields might have limited flexibility.

other way can creating own class renders html page.

use below in view. view should typed of model want use:

@using(html.beginform()){     @html.editorformodel() } 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -