I am developing a very small survey application, probably 3-4 pages of a web application. so my question is the best way to save survey data?
By the way, so far I have come up with the following methods.
save to the database and mark each survey as incomplete. when the user submits the last survey form, check the completeness of the survey and mark it as completed if it is completed.
save in sessions and save to the database when the user submits the latest survey form.
what do you think of these methods?
, , . , ASP.NET , , , .NET .
. Guid.NewGuid() , : .
, :
. ( , .)
asp: Wizard. , 3-4 3-4 . ViewState , , .
( № 1.)
. Microsoft , , TechEd. , , . ajax, , . , . javascript , - .
, , .
, - ( , , , "" ), .
:
, , , , , . .
, . , 1 , . , , , ?
, , , .
( ), . , , , - , , , , , .
. , , , , .
I would say that the number of questions on each of the pages will be the determining factor for choosing between the two methods for me, perhaps this may be for you.
Source: https://habr.com/ru/post/1703010/More articles:Reading the value of g: datePicker in Grails without using the "new object (params)" method - grailsBest practice for prototyping? - prototypingIs there a way in SQL to ask “what has changed?”? - sqlPython Golf: the most concise way to turn this list of lists into a dictionary: - pythonBest plugin to create "friends" of the system / social network for the latest Rails? - ruby | fooobar.comОбработка звука. Должен ли я использовать DirectSound или напрямую Win32 API? - winapiКак TCP обрабатывает таймауты с помощью cwnd? - tcpSqlMethods.DateDiffMonth in Entity Framework - c #How to display value in the text box indicator and slider in LabVIEW? - labviewFind subdomain using regex in PHP - phpAll Articles