As most people, I have read a seen a lot of examples of getting data from a form (html) and being able to effeciently handle the posted data say within an ASHX (Generic Handler) page... and from there say update a database via a stored procedure.. maybe I am trying to automate things too much?? !!
- So I have a HTML form with say 50+ form fields.. text, checkbox, combo/dropdowns etc
- When I click "SAVE", I want to be able to post those values to say an ASHX page which in turn will...
- Within the ASHX page, I need to either allocate those passed form values to a business object, or for now, simply add the form values as params to a stored procedure to insert to the database.
Now rather than have lines of code getting each form value, and then assigning to the stored procedure, is there a simplified way of doing this??
I am using JQuery.. I see the serialize function.. but just need to know if the end to end solution even can be done this way, or if I do indeed have to manually retrieve the values, and assign them to an object/stored proc....
Any help much appreciated!