c# - what is an easy way to duplicate a "write form fields to database" process? -


i have asp.net (c#) application working on. in application multiple pages of form fields filled out , submitted. @ bottom of last page submit button writes databse. code writing these fields form db complex there 30 different stored procedures being called. trying create duplicate when user clicks on new button called "replicate", should store duplicate copy in db. try copy paste code write db "submit" button bunch of problems. have tried lot of different approaches such pasting submit button's code in new method , "replicate" button call method approach doesn't work. so, confused whether there easier way duplicate submitted copy being stored in db. couple sql statements work in case there 35 stored procedures, 70 sql tables, , 425 columns, problem.

so summary of problem is:

i have form on submit, writes filled fields various locations in db, depending on field is.

i create "replicate" button duplicates db stored fields of form creating duplicate copy.

issue: stated there 215 form fields , 70 sql tables, each form field going column in table.

i go creating 1 more stored procedure copying directly in database. have "replicate" button call new stored procedure creates copy , returns handle (some base id value created copy) , use handle load copied version application. make sure run copying inside transaction either complete copy commit or can rollback if error occurred.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -