Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7820783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:25:44+00:00 2026-06-02T07:25:44+00:00

I have created a mvc3 application. Currently saving submit form value into Session as

  • 0

I have created a mvc3 application.
Currently saving submit form value into Session as i need to do some stuff on that before
save changes to database.

Is there any other good way to store temp data in mvc like ViewState?

I’m saving form input values into Session variable each time when data is entered and and when I clicked on submit button.

After every submit i’m populating my session variable with new added values and displaying all those values into webgrid.

Once i’m done with insertion finally clicked on update button which takes all values from webgrid and pass to one stored procedure as a parameter.

Now here i want to achieve 2 things
1.need to save all inserted data as clicked on submit it gets refresh all time.
so need to save all previous data to.
2.currently using session variable which sets to webgrid to show data into webgrid and once done with insertion passing those values to stored procedure.

So need to know any other good way to save data.

Else can use javascript to do this all on client side.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T07:25:46+00:00Added an answer on June 2, 2026 at 7:25 am

    You should avoid schemes that attempt to make the stateless web seem stateful for two reasons.

    Firstly, Session DOES NOT avoid a round-trip, it’s only nominally different than storing values in the database. Yes, a fetch of memory is faster than a fetch from SQL but this doesn’t scale well — to scale (more than 1 server) you must add components and hops that reduce the gains and dramatically increase the complexity.

    Secondly, Session values are likely to make it to a database anyway so why not just start with them there in the first place.

    Thirdly (yes, another one), Session is not necessarily something to trust any more than a hidden form field would be.

    In 13 years I’ve seen session used almost exclusively for the wrong things — developers regress to using session for convenience and later regret it (as do the developers who replace them and have to maintain their code).

    In short, use a database to store this information and be smart about how you fetch and cache it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have created an mvc3 web application that uses forms based authentication. one part
We have a MVC3 application that we have created many small actions and views
I have created a sample MVC3 application for BookShop. I have a create action.
I have created an MVC3 application and added cutomerrors attribute on in web.config. It
I have created a simple application using MVC3 and the site is based on
In my MVC3 application, I have a view model that I Json encode so
I have to develop an ASP.NET MVC3 application in C# and Razor that has
In my ASP.NET MVC3 application I have the following method that use EF entities
I have created blank Asp.Net-MVC 3 web application and want to write my own
I have created a template for Visual Studio 2008 and it currently shows up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.