How to store a dataset in a viewstate?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Is react a template engine?
Can we store PROGID information in database and dynamically load the component ?
1 Answers Digital GlobalSoft, e4e,
What are merge modules?
there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?
What are standard controls?
hi ans dis qstn. "what is d max size of query string. If it exceeds does it give error. if yes wt error it gvs, if no gv the reason" thnx in advance
How many Garbage Collectors are there for one Application or one Page
Define viewstate in .net?
Differentiate between namespace and assembly.
How to prepare culture-specific formatting in .net.
What is the need of client side and server side validation ?
What does it mean your session has timed out?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)