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

Which class provides methods that can be used to manage role membership to be used in user authorization?

3 Answers   Wipro,


What is the use of directives & explain with example?

2 Answers   C Squared Systems,


Whats the use of @ Register directives ?

4 Answers  


what is the difference between assemblyinfo and webconfig files?

1 Answers  


How will you do Redo and Undo in a TextControl?

0 Answers  


Securitywise What are the Enhancements in 2.0?

0 Answers   Microsoft,


What is server side routing?

0 Answers  


Which template must you provide, in order to display data in a Repeater control?

1 Answers  


How we can bind textbox,listbox and datagrid to sql server database in asp.net using visualstudio.net language (vb.net)?

2 Answers   rocsearch,


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

4 Answers   Accenture,


What is the main function of razor in asp.net? : asp.net mvc

1 Answers  


Why cyclomatic complexity is important?

0 Answers  


Categories