Best way to store survey data?

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?

+3
source share
7 answers

, , . , ASP.NET , , , .NET .

. Guid.NewGuid() , : .

, :

  • . ( , .)

  • asp: Wizard. , 3-4 3-4 . ViewState , , .

( № 1.)

+3

. Microsoft , , TechEd. , , . ajax, , . , . javascript , - .

, , .

+2

, - ( , , , "" ), .

+2

:

  • "" , .
  • , "next". , , .
  • , .
  • , , .
  • == , .
+1

, , , , , . .

, , .

0

, . , 1 , . , , , ?

0

, , , .

( ), . , , , - , , , , , .

. , , , , .

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.

0
source

Source: https://habr.com/ru/post/1703010/


All Articles