answersLogoWhite

0


Best Answer

hidden field :

The hidden field does not show, but still, when the form is submitted the hidden field is sent with it.Therefore the visitor can't type anything into a hidden field but we can assign values. getting values in post back or on page load.

View state:

To store values between postbacks in ASP.NET we go for viewstate ie

When a postback happens (i.e. when a form is submitted to a server), the variable values that are set in the code-behind page are erased from the memory of the client system. This concept would be different from what happens in Windows-based applications, where the variables persist in memory until they are freed from the memory either by the garbage collector, or by specific codes like dispose or finalize.

In web applications, variable values simply get erased. But it is very simple to persist these values. They may be persisted using the Viewstate object. Before the postback is invoked, the variable's value is saved in a viewstate object. In the same page, the viewstate's value may be retrieved back after hitting the server and returns back.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

AnswerBot

3w ago

Hidden fields store data in the HTML form itself and are visible in the page source, while view state is a mechanism to persist values across postback requests in ASP.NET web applications without explicitly submitting data in the form. View state is encrypted and hidden from the user, providing more security compared to hidden fields.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between hidden fields and view state?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Information Science

What is the difference between fact and independence?

A fact is a statement that can be proven to be true or false based on evidence, while independence refers to the state of being self-sufficient or free from outside control. Facts are objective and verifiable, while independence is a concept related to autonomy and self-reliance.


What is a session What are the different ways of session tracking in servlet programming?

In servlet programming, a session is a way to maintain state between multiple requests from the same client. There are several ways to track sessions in servlet programming, including cookies, URL rewriting, and hidden form fields. Cookies are the most commonly used method, where a unique identifier is stored on the client's browser to associate subsequent requests with the same session. URL rewriting involves appending session IDs to URLs, while hidden form fields store session IDs in HTML forms.


When atoms are in this state of matter they fly around freely?

When atoms are in the gaseous state of matter, they have enough energy to overcome the attractive forces between them, allowing them to move freely and independently. This results in a lack of fixed shape or volume, with the atoms filling the container they are in.


What is the difference between scientific and non-scientific statements?

Scientific statements are based on evidence, observation, and experimentation, following the scientific method to ensure accuracy and reliability. Non-scientific statements may lack empirical evidence, rely on personal beliefs or opinions, or be based on subjective experiences rather than objective data.


What is Missouri's flower?

The white hawthorn blossom (Crataegus punctata) serves as Missouri's official state floral emblem. It was designated as the state flower in 1923.

Related questions

What is the difference between Markov Models and Hidden Markov models?

Unlike MM in HMM state is hidden.


What is the difference between Common Wealth vs State?

What is the difference between a common wealth and a state?


What is the difference between a city-state and an empire?

a city state does not have an emperor the difference between a city-state and an empire is that a city-state does not have an emperor


What is the difference between the State Legislature and the US Congress?

The difference between the state legislature and the congerss is that the state legislature is state legislature while Congress is national legislature.


What is the difference between a state college and a public college?

There is no difference.


What is the difference between city and state job?

City is local and state is with the state. Pay would be the big difference.


What is the difference between a state of United States and state of United States of America?

There is no difference. They are one and the same.


Difference between NH state police and NH trooper?

There is no difference, the state police is the division, the trooper is the person.


What is the difference between state and private exchange?

The main difference between state and private exchanges under the Affordable Healthcare Act is that state exchanges are run by the government, and private exchanges aren't.


Difference between a state and a nation?

A state is usually a political division of a nation.


What is the difference between a trait and a state?

They are spelled different


What is the difference between state univ and public univ?

== ==