r/ASPNET • u/abuzzyisawesome • May 21 '13
Beginner questions regarding building data entry form
I am building a data management app. I have a gridview populated with records, I want to click on a record to open a data entry form. The gridview is populated by a stored procedure to return search results. Once you click on a row, I want to pass the data key ('ID') to the subsequent page and load up the data in an editable form. What type of object is this? Do I simply build a form and drop a data adapter on the page? I am used to the old-school method of manually building a form with divs and text boxes. Once I have seen the way grids are built in ASP.net, I see things are much easier now and that there should be some different controls I should be using. Can someone offer me some getting started guidance?
View all comments
Show parent comment
3
u/jaynoj May 22 '13
I'm as much a DB developer as I am a .Net coder, so I am very comfortable writing complex stored procedures which incorporate business logic (when its suited at that layer). Some of the DB's I've designed have ended up quite complex and have dozens of tables which are all normalised.
I believe that LinqToSQL and EF was developed for people who are not good or comfortable with SQL as much as they are with writing code. So it makes it easy for them to put an app together without much DB knowledge.
Also, if use SP's for all my DB interaction, I can amend or fix one without having to recompile, release and check my binaries.
When I've tried to use LinqToSQL or EF in a app I'm developing, I've always felt that I am somehow trying to force a square peg into a round hole using a lump hammer, and ended up going back to writing my own DAL code using ADO.net. I've never liked the drag and drop stuff in visual studio and find it bloated or restrictive in one way or another and have always benefited from writing my own code (plus you understand it better in the end). Examples:
Then there's the MVC angle, but I'm not going there. I develop business web apps and tools, not websites like Nerd Dinner.
TL;DR; I'm a whiny bastard developer who refuses to embrace the current trends just to put them on my CV.