answersLogoWhite

0

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

14y ago

What else can I help you with?

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?

Why do we need a Session?When one page needs to share information with another, the scope of the data broadens beyond processing a single request. This is because, when a response gets committed, all the data that was held in the request that generated that response is destroyed. So, if you want that data in another page, you will be looking at a blank request object with no data in it. When such a need arises, you must send the data from one page to the server and from the server to the next requested page, whether it be the same page or another page altogether. There are several ways to share state information between requests. However, the primary or the easiest way is to use sessions.How Do Sessions Work?The container generates a session ID. When you create a session, the server saves the session ID on the client's machine as a cookie. If cookies are turned off then it appends the ID in the URL. On the server, whatever you add to the session object gets placed in server memory-very resource intensive. The server associates that object in memory with the session ID. When the user sends a new request, the session ID is sent too. The server can then match the objects in its memory with that session ID. This is how we maintain client state.


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 state flower of Missouri is the hawthorn. The state dessert is ice cream, the state bird is the bluebird, and the state dance is the square dance.

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 head of state and a chief executive?

The head of state is a symbolic role.


What is the difference between state general secretary and state secretary?

ones general ones not