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

how many script manager controls are used in Ajax web page?

7 Answers   TCS, CSC, Health Prime Services,


How do you define authentication in Web.Config?

2 Answers   Patni,


Can private assembly be used for more than one application? If so how?

7 Answers   Satyam,


what is profiles in asp.net

1 Answers  


can I use session variable in App_code Class page??

3 Answers   Wipro,






About duration in caching technique ?

4 Answers   Accenture,


Difference between application and session ?

12 Answers   Satyam, DataPoint,


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

0 Answers   CTS,


Difference between .NET and previous version?

0 Answers   Microsoft, TIPL,


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

3 Answers   Wipro,


Guys can anobody tell what is Conditional Bloating in asp.net ??

1 Answers  


Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)

0 Answers   Tricom,






Categories