prasanta kumar pradhan


{ City } hyderabad
< Country > india
* Profession * soft eng
User No # 44676
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 2
Users Marked my Answers as Wrong # 1
Questions / { prasanta kumar pradhan }
Questions Answers Category Views Company eMail




Answers / { prasanta kumar pradhan }

Question { IBM, 8767 }

How to store a dataset in a viewstate?


Answer

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