can we store textbox and com components in viewstate?

Answers were Sorted based on User's Feedback



can we store textbox and com components in viewstate?..

Answer / swetha

Yes, We can store Values of TextBox in ViewState.

I am not sure about the com components

Is This Answer Correct ?    2 Yes 0 No

can we store textbox and com components in viewstate?..

Answer / karthik

We can store values of textbox by using Enableviewstate=true

Is This Answer Correct ?    0 Yes 0 No

can we store textbox and com components in viewstate?..

Answer / srikanth

We can store the value of the textbox, but cannot store
the textbox itself. Because viewstate can't hold the object
we can't store COM component as well.

Is This Answer Correct ?    1 Yes 1 No

can we store textbox and com components in viewstate?..

Answer / rudra prasad roy

System.Web.UI.Controls are not marked as serializable .
And Viewstate can hold object but that should be Serialize.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Where can we set the specific variables for a application and Session objects ?

2 Answers   Siebel,


How to use ipostback?

0 Answers  


How will you load dynamic assembly?

0 Answers  


how to get modified rows from Dataset

1 Answers   CGI,


Which is the best institute for ASP.NET?

8 Answers   ABC Infotech, Tech Mahindra,


how to retrieve data using web services in asp.net pls give me the code and explain me briefly

3 Answers  


What are the differences between application object and session object?

0 Answers  


Define ViewState and how can it be used?

6 Answers   Siebel,


What are the major differences between asp.net1.1 and asp.net 2.0?

8 Answers   CTS, Deloitte, Mphasis, Vison,


What is source control?How to use in asp.net?

1 Answers  


How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

0 Answers   CTPL,


Why we use content place holder in asp.net?

0 Answers  


Categories