Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 24th, 2006, 02:14 AM
Authorized User
 
Join Date: Mar 2006
Location: pune, Maharashtra, India.
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to use global dataset for asp.net application

Hi,

I want to use global dataset for my asp.net application. how can i achive this. Curently I am assing dataset to session varible and retriving that dataset into other pages using Ctype statement. Please advise me on better way to use dataset globally.

  #2 (permalink)  
Old March 28th, 2006, 12:19 AM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

My advice on using DataSet Globally: Don't. What are you trying to do that requires you to pass an entire dataset around?

"The one language all programmers understand is profanity."
  #3 (permalink)  
Old April 6th, 2007, 06:45 PM
Registered User
 
Join Date: Apr 2007
Location: New Delhi, Delhi, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to prashant_victory@hotmail. Send a message via Yahoo to prashant_victory@hotmail.
Default

Hello dparson
You said...
"My advice on using DataSet Globally: Don't. What are you trying to do that requires you to pass an entire dataset around?"

But why not to use a global dataset in session?????,
caz i d't think there is any other way to use a global dataset except putting it in session... if u know anyother way then plz tell us.

Prashant Pandey
  #4 (permalink)  
Old April 6th, 2007, 09:30 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Anytime you place something in session it consumes server resources and can degrade preformance of your application if 1)You are storing ALOT of information inside the dataset and 2) If you have multiple people accessing your site all storing their own dataset in session.



================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is Global.aspx for ASP.net 2.0 jdang67 ASP.NET 2.0 Basics 2 June 2nd, 2009 03:40 AM
ASP and ASP.NET mixture for protecting application BananaJim ASP.NET 2.0 Professional 0 December 6th, 2006 02:19 PM
Global Variables in ASP.NET mehdi62b ASP.NET 1.0 and 1.1 Professional 11 August 8th, 2004 03:15 AM
Creating ASP.NET Application in Visual Studio.NET Maxood ASP.NET 1.0 and 1.1 Basics 1 March 8th, 2004 01:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.