Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
i found more one solution for this task the best one is
after create a new ASP.NET Web Application from File | New | Project | .NET Framework4.5 | ASP.NET Web Application by selecting MVC as a project template.
Enable Entity Framework Code First Database Migrations
then Add new properties
Add New Migration
Update RegisterViewModel
Update Register View Page
Update Account Controller’s Register action
but i have error with Enable-Migrationshttp://www.bayt.com/ar/specialties/q/102750/how-to-enable-migrations-in-visual-studio-2013-in-asp-website-form/?feed=questions
not understand what you want to say,
simple answer is open your aspx file which one have a form
Well, as you made a new form you can use same on. Pass the record ID which You want to show the record in that form. and check in asp code, If id exists and not empty then get record of that id from database table and show relevant fields in form fields. and if record ID is empty then it will work as Create New Record.
If you are creating a new project, I suggest to create it from a blank MVC template with RAZOR support. If your are encoutring some common error with the migration, this is due to the existence of Two Context. On Visual studio, try to pin point on which part is the error occuring, screenshots would be a greate help, if you can please post some.