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

What r the page life cycle in asp.net page?

6 Answers  


page life cycle of asp.net.

4 Answers  


What is the difference between Postback and Ispostback Property?

7 Answers   Atrocity Apps Technologies, DC Infotech, HCL, Maples, Visual Soft,


Explain the Session state management options available with ASP.NET?

0 Answers   Siebel,


Please briefly explain the usage of global.asax?

0 Answers  






What is an asp.net validator? And, mention its types.

0 Answers  


How to Insert a TextBox value in to Sql database using C# coding?

17 Answers   HCL, Sona, TCS,


User contro having 4 text boxes given validation controls. i want to execute validations after the button click event how it is?

3 Answers  


what if we delete web.config or machine.config? will a website work if we delete webconfig....or if we delete machine config?

4 Answers   TCS,


What symbol specifies the beginning of a query string?

0 Answers  


How to write unmanaged code and how to identify whether the code is managed / unmanaged ?

2 Answers   Accenture, BirlaSoft, Cogtest,


how to encrypt a connection string in web.config file?

3 Answers   Hexaware,


Categories