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 |
what is state management in ASP.NET
I have prepared A Dynamic website in asp.net with c# and using Ms Sql server 2005 as backend database.i am facing problem while uploading this site on my FTP address it is not accessing the database.please could u tell me how cn i upload Sqlserver database on the web and what would be the connection string...???? I am using Server=".";initial catalog=databasename;persist security info=false;integrated security=SSPI;...pleas help me... Thanks in Advance..
how to retrieve property settings from xml .config file.
How does windows service lifecycle differ from a .standard. Exe?
How will you do Redo and Undo in a TextControl?
Which @page directive should you create an asynchronous page?
What was the difference between machine.config and web.config files
17 Answers Assurgent, NIIT, TCS,
What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
different architectures of asp.net?
What is a session in programming?
Explain the features that make asp.net more used framework? : asp.net mvc
How to unit test Web API?
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)