Best to pass dataset one page to another page

Asked By Abhi Rana
07-Nov-09 01:23 AM
Earn up to 0 extra points for answering this tough question.

I want to know best/secure way to pass dataset from one aspx page to another aspx page.

  Re:

web mavin replied to Abhi Rana
07-Nov-09 01:38 AM

Besides using Session or Query string or ViewState to hold you dataset to pass to other page, you could think of using Cache object. Read more on this at this link and here.

One more option is use

Also, read on options of state management that are described in this article: ASP.NET: Nine Options for Managing Persistent User State in Your ASP.NET Application

  re

Web Star replied to Abhi Rana
07-Nov-09 11:23 AM

best and secure way to pass dataset from one aspx page to another aspx page is Session.

u can store DataSet in session variable on first page

Session["DS"] = objDs;

and then u can redirect to another page and access that dataset on other page as follows

DataSet objDS;

objDS = Session["DS"];

Create New Account