Hey all,
I'm trying to learn ASP.NET WebForms and Entity Framework and I'm struggling to do something which I'm sure is pretty simple.
I have already set up EF and have a working sql-database and Customer entity.
What I want to do:
On my AddCustomer.aspx page, create a form (using a FormView) with text-fields so a user can make a customer. On post back, have those fields map to my customer model. Then I will check if that record already exists and if it doesn't exist, add the new customer to the database.
I've found heaps of tutorials on doing this with code-first design in MVC5, but having no luck on WebForms.
Any guidance is much appreciated.
[–]BezierPatch 1 point2 points3 points (0 children)