ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

How can i edit to the registration form in asp website form?

user-image
تم إضافة السؤال من قبل Shaadi Bassiouni , Technical , General Authority for Cultural Palaces
تاريخ النشر: 2014/07/04
Shaadi Bassiouni
من قبل Shaadi Bassiouni , Technical , General Authority for Cultural Palaces

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

Noor Khan
من قبل Noor Khan , Technical Team Leader , Insightz360

not understand what you want to say, 

 

simple answer is open your aspx file which one have a form

M Naveed Ramzan
من قبل M Naveed Ramzan , Head of Engineering , 31Global

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.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟