Search EggHeadCafe's Job Board
EggHeadCafe Silverlight WPF ASP.NET VB.NET C# Excel SQL Server SharePoint
search
MicrosoftArticlesForumsFAQs
C# .NET
VB.NET
Visual Studio .NET
ADO.NET
Xml / Xslt
VB 6.0
.NET CF
GDI+
LINQ
Deployment
Security
FoxPro
Silverlight / WPF
Entity Framework
RIA Services

WebArticlesForumsFAQs
JavaScript
ASP
ASP.NET
WCF

DatabasesArticlesForumsFAQs
SQL Server
Access
Oracle
MySQL
Other Databases

OfficeArticlesForumsFAQs
Excel
Word
Powerpoint
Outlook
Publisher
Money

Non-MicrosoftArticlesForumsFAQs
NHibernate
Perl
PHP
Ruby
Java
Linux / Unix
Apple
Open Source

Operating SysArticlesForumsFAQs
Windows 7
Windows Server
Windows Vista
Windows XP
Windows Update
MAC
Linux / UNIX

Server PlatformsArticlesForumsFAQs
BizTalk
Site Server
Exhange Server
IIS

Graphic DesignArticlesForumsFAQs
Macromedia Flash
Adobe PhotoShop
Expression Blend
Expression Design
Expression Web

OtherArticlesForumsFAQs
Lounge
Subversion / CVS
Ask Dr. Dotnetsky
Active Directory
Networking
Uninstall Virus
Job Openings
Product Reviews
Search Engines
Resumes

 

  View Other C# .NET Posts   Ask New Question  Ask New Question With Power Editor

Best to pass dataset one page to another page
Abhi Rana posted at Saturday, November 07, 2009 1:23 AM

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

Reply    Reply Using Power Editor
  Rank Winnings Points
November 0 $0.00 0
October 0 $0.00 0
Re:
web mavin provided a rated reply to Abhi Rana on Saturday, November 07, 2009 1: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

Reply    Reply Using Power Editor
  Rank Winnings Points
November 8 $22.00 53
October 7 $38.00 131

re
Web star provided a rated reply to Abhi Rana on Saturday, November 07, 2009 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"];

Reply    Reply Using Power Editor
  Rank Winnings Points
November 5 $55.00 134
October 10 $28.00 94