How to store a dataset in a viewstate?

Answers were Sorted based on User's Feedback



How to store a dataset in a viewstate?..

Answer / mahesh kotekar

Dataset can be stored in the viewstate. any object that
can be serializable can be stored in the viewstate. We can
serialize the dataset and then can be saved int he viewstate..

Is This Answer Correct ?    24 Yes 4 No

How to store a dataset in a viewstate?..

Answer / jitender

dataset can be stored in the viewstate. any object that can
be serializable can be stored in the viewstate. we can
serialize the dataset and then can be saved in the viewsate

Is This Answer Correct ?    12 Yes 2 No

How to store a dataset in a viewstate?..

Answer / pradhan prasanta kumar

Hi..
store a dataset in a view state is not Recommend.
//da(sqldataadapter);dataset dSet
da.Fill(dSet);
System.IO.StringWriter sw = new System.IO.StringWriter();

// Write the DataSet to the ViewState property.
dSet.WriteXml(sw);
ViewState["dSet"] = sw.ToString();

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More ASP.NET Interview Questions

What are the different web pages?

0 Answers  


what are Httpmodule and HttpHandler?

3 Answers   Microsoft, Wipro,


What is the function used for removing an event listener?

0 Answers  


where the stored procedure are written in business logic or data acess layer?

2 Answers  


How to write test case (Unit test plan)

1 Answers   Syntel,






Can two web application share a session and application variable ?

5 Answers   Satyam, V3 Engineers,


I want to connect a system in LAN and I want to access that. Whenever I am moving a mouse in my desktop, the similar thing has to happen in another system in which I have connected. I need coding for this in C# and ASP.NET Can anyone please help me. It is very urgent. Thanks in advance. My email id is manojkumarchallagundla@gmail.com Will you please?

0 Answers   Excel,


What is the function of new view engine in asp.net? : asp.net mvc

0 Answers  


difference between caching objects in session objects?

2 Answers  


What are typed datasets?

1 Answers   IBS,


what is postback implementation?when pre-render event n init event is fired?

2 Answers   Ness Technologies,


write six HTTP request method?

4 Answers   IBM,


Categories