0

Hi,
Please someone explain me what is viewstate and postback properties in simple words. I have sean many notes but still confused. Please explain with example and considering me as totaly new to IT (actually i am not). Please help i am very confused. Thank you.

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by Jigs28
1

I have this link actually bookmarked in my browser and have referred to it a few times.
http://msdn.microsoft.com/en-us/library/ms972976.aspx

From my understanding in simple terms, the purpose of viewstate is to carry information over from one page to another during a postback. For example, when a user clicks a submit button, and you assign certain properties during that event (modifying a textbox, label, etc...), you need for that information you assigned to be available when the new page is loaded. If you didnt have viewstate available, you would have to assign that information to a session variable or store it somewhere else.

0

Means as irctc site were user fills all the details on first page and when he clicks on next at that time all train details entered is saved in viewstate so that on next page fare is automaticaly calculated according to train selected and class and stations.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.