is it possible to persiste customize object in view state?
how it is?

Answer Posted / raovarinder singh

Yes it is possible to persiste customize object in view
state, Supposed your are having one variable named x for
which you want to persist the view state.

dim x as integer
ViewState(Value) = x

Which can then be accessed as follows:

x = ViewState(Value)

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is preprocessor in .net?

695


What is cross page posting? How is it done?

714


Write a code for passing ArrayList in Web API?

1242


Why do we need Sessions?

745


Explain the difference between value type and reference type?

431


How can we create a website?

711


Which type if caching will be used if we want to cache the portion of a page instead of whole page?

675


Explain ViewState?

768


What is the recommended approach for asp.net mvc to globally intercept exceptions? What other functionality can be implemented with the approach? : Asp.Net MVC

710


Why web api is better than wcf?

749


How ASP and ASP.NET page works? Explain about asp.net page life cycle?

762


Explain what is an assembly?

733


How may clustered index we can create in table?

741


Is post back property in asp net?

731


What are client activated objects and server activated objects?

707