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 |