Passing data between asp.net pages

后端 未结 4 809
被撕碎了的回忆
被撕碎了的回忆 2020-12-17 05:15

I\'m wondering the opinion of what is the best way to pass a lot of values between MULTIPLE pages. I was thinking of either saving the values to a database, using context.It

4条回答
  •  别那么骄傲
    2020-12-17 05:40

    The answer is entirely dependent on what the user expects the next time he returns to your site. Does he expect you to remember the contact information he already entered? If so, then you're going to have to use long term persistence in a database, cookie, etc. Is your user entering someone else's information for this visit only (i.e. a customer service app), and will enter different information the next time they visit? If so, then you may want to use the Session object.

提交回复
热议问题