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 7067065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:09:23+00:00 2026-05-28T05:09:23+00:00

I came to know there is no viewstate in MVC. I have two question

  • 0

I came to know there is no viewstate in MVC.

I have two question with respect to view state.

first question:

In classic web forms Viewstate is used to maintain control states during round trips. even i am not clear with this point. I read somewhere like if i disable viewstate in a page all the forms controls will be cleared after postback. I don’t feel this is a valid reason for the need of a viewstate. The ASP.net engine could handle this situation (mainatianing state) without viewstate.

and my second question: which part of MVC is handling view state responsibility.

Regards,
Ramana Akula.

  • 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-05-28T05:09:24+00:00Added an answer on May 28, 2026 at 5:09 am

    ViewState is not needed because there are no server-side controls (at least there shouldn’t be).

    Simple as that really.

    Server-side controls use ViewState to track (in some cases all) property values that need to be restored when the page is posted back. Equally, it’s the mechanism by which server-side events such as TextChanged can be fired – the server re-hydrates the asp:TextBox‘s Text value as it was when the ViewState was saved into the page, and compares it to the value that is POSTed back – if it’s different, the event is fired. For example.

    In truth ViewState is a very clever solution… But I have to say I loathe it.

    In MVC, when a text-box is rendered (or, should I say, an HTML input type=text) and then submitted back, it’s value is re-bound back from the request. On the server you then reconstitute the data you need to compose the view again.

    I’ve written quite a few MVC sites now – and I’ve not even had a need to switch on session state yet.

    If you’re coming from Asp.Net Forms it can be totally mind-boggling at first (it really depends on how comfortable you are with HTML in general), but ultimately it’s incredibly liberating; and obviously makes a huge difference with performance.

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

Sidebar

Related Questions

I just came to know that there are data breakpoints. I have worked for
I am new to java, and came to know that there are two Right
I recently came to know that in C++ pure virtual functions can optionally have
i have googled and came to know that how to use the variable arguments.
I know that the reason that Microsoft came out with ASP.NET MVC was to
I know the bits just came out today, but one of the first things
First of all, I know that there are some topics about icon packs here
I know there are other similar questions to this, but I came up with
I have done few sites for my clients but I came to know these
I know there have been discussions wrt to dbunit here. I have read most

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.