Can you store dataset in viewstate?

Answer Posted / rajamurugesh

//Create new dataset :
DataSet ds = new DataSet();
//Store the dataset directly into view state
ViewState["dsn"]=ds;
//retrieve the dataset where it required
GridView1.DataSource = (DataSet)ViewState["dsn"];

Is This Answer Correct ?    44 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Distinguish between Server-side and Client-side code with its functionality?

628


What is the mvc framework?

567


What is user control in asp.net?

512


What is the use of response redirect in asp.net?

581


Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?

514






Explain the main function of url routing system in asp.net mvc? : asp.net mvc

495


How to prepare culture-specific formatting in .net.

519


I have an excel file with data, i am importing this excel file data into Sqlserver 2005 database. while importing i am getting wrong data(ie, special characters) in one column(description column), upto some limit the data in that column is coming fine,after that data is coming like below. The "Walter" leather storage bench is one of our most popular styles. The top with the tufting and double stitching finish a very impressive piece. The size is perfect in front of beds and the storage adds another functional bonus. Open it up and sneak al���Ƴ�Â��ƴ�Ã��ƶ�Å�� al���Ƴ�Â��ƴ�Ã��ƶ�Å�� Is there anywhy to resolve this? (I am using recordset in coding for developing import process.) please help me soon.

1433


When should I use server transfer and response redirect?

516


What are the Types of authentications in IIS

601


What is difference between asp.net and asp?

565


What are the contents of cookie?

576


What are the differences between the response.write() and response.output.write()?

539


Explain about Automatic resource management?

580


About CLR, reflection and assemblies?

1546