How to store a dataset in a viewstate?
Answers were Sorted based on User's Feedback
Answer / kinjal panchal
when you add dataset into dataAdupter like
dataset ds=new dataset();
dataAdupter da=new dataAdupter();
da.fill(ds);
then create one stringwriter
system.io.strinwriter sw=new system.io.stringwriter();
your dataset write into this stringwriter
ds.writeXML(sw);
viewstate["ds"]=sw.tostring();
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / kundal singh
DatasetAdapter sda = new DatasetAdapter("select * from
tablename");
Dataset ds = new Dataset();
sds.fill(ds);
ds.Tables[0].TableName = "tablename";
sda.Fill(ds, "tablename");
sda.Fill(StartIndex, Numbers, ds.Tables)
sda.Fill(0, 25, dt);
sda.Fill(25, 200, ds.Tables["tablename"]);
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / alb.shah
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 ? | 4 Yes | 6 No |
How do you specify whether your data should be passed as Query string and Forms (Mainly about POST and GET)
What are the data types is possible to store in session? and can we store dataset in session?
How many rounds are there for a software programmer to clear interview in any IT industries(MNC).
How can I create master page in asp net?
What is the Difference between MVC And MVP design pattrens
What is a url string?
Why web api is better than wcf?
What are the Types of authentications in IIS
Advantage of Update Panel over Asp.net 2.0 + C#+ Microsoft Ajax 1.0
Define Query Interface,Adref,Release?
Suppose there is one web farm with 3 servers inside with same configuration and the same project is running inside all servers.Which session mode is usde for all these and why?
What is difference between session and viewstate?