.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

How long the items in ViewState exists?

Posted By :Bhumika Patel     Posted Date :March 07, 2013    Points :40   Category :ASP.Net 


They exist for the life of the current page.



You can also find related Interview Question to How long the items in ViewState exists?  below: 

What is the lifespan for items stored in ViewState?

  
Item stored in ViewState exist for the life of the current page. This includes postbacks. Viewstate become nothing once it redirects or transfer to another page. (More...)

What is the lifespan for items stored in viewstate

  
Item stored in ViewState exist for the life of the current
page. This includes postbacks (to the same page). (More...)

What is the lifespan for items stored in ViewState?

  
The items stored in ViewState live until the lifetime of the current page expires including the postbacks to the same page. (More...)

What is the difference between ViewState and SessionState?

  
ViewState persist the values of controls of particular page in the client when post back operation done. When user requests another page previous page data no longer available.

SessionState persist the data of particular user in the server. This data available till user close the browser or session time completes. (More...)

What the way to stop a long running thread ?

  
Thread.Abort() stops the thread execution at that moment itself. (More...)

How can I add icons to menu items?

  
Unfortunately there is no built-in feature for this.You need configure the menu items to be owner-drawn (set OwnerDraw to True) and then use GDI+ to draw both the text and graphics (handle the MeasureItem and DrawItem events). Microsoft's "Got Dot Net" site (www.gotdotnet.com) is a good place to start for information about implementing owner-drawn controls. (More...)

What Is The Difference Between ViewState and SessionState?

  
View State persist the values of controls of particular page in the client (browser) when post back operation done. When user requests another page previous page data no longer available.
SessionState persist the data of particular user in the server. This data available till user close the browser or session time completes. (More...)

What are the Benifits of Using ViewState?

  
a).No server resources are required because state is in a structure in the page code.
b).Simplicity.
c).States are retained automatically.
d).The values in view state are hashed, compressed, and encoded, thus representing
e).A higher state of security than hidden fields.
f).View state is good for caching data in Web frame configurations because thedata is cached on the client. (More...)

When during the page processing cycle is ViewState available?

  
After the Init() and before the Page_Load(), or OnLoad() for a control. (More...)

Does ViewState is responsible for maintaining data across the Page Post Back for Postback controls (like textbox, dropdownlist) and non-postbackcontrols(like label)?

  
It is false. For NonPostback controls it is true but for postback controls, ASP.NET retrieves their values one by one from the HTTP request and copies them to the control values while creating the HTTP response. (More...)

When during the page processing cycle is ViewState available?

  
The view state is available after the Init() and before the Render() methods are called during Page load. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend