What is the difference between view state and a hidden field in Asp.Net?

 Posted by Vishalneeraj-24503 on 3/1/2015 | Category: ASP.NET Interview questions | Views: 2988 | Points: 40

Actually both are used to store the value during the Post-back in Asp.Net.But there are some differences between them.

View State - We are not able to change the value by Client side code i.e java script.
Hidden Field - It's possible to change value by Client side code.

View State - We can store more than one value like Datatable , Dataset, Collections and Object.
Hidden Field - We can store only one value in hidden field.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response