Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 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
 
Old June 8th, 2006, 02:56 AM
Registered User
 
Join Date: Feb 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Saving a Public Property created in App_Code

Hi, I wonder if you could help me?

I have created a Public Class in my App_Code folder, because I want all pages to be able to use it.

I can write and then read the value of the property, but as I move to another ASPX page and refer back to the same property, the value has been lost.

I understand this may be by design, but can I get the property to save the value permenantly? Or is there an alternative (I don't want to use Session variables)

Thanks in advance.
Paul.
 
Old June 8th, 2006, 02:18 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

I like the cache. It's very useful to use it. You can use the Cache property of the Page class, or I like using the Enterprise Library Cache Block.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
public article - public articledetails _keysersoze_ BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 September 8th, 2007 08:38 AM
Renaming App_Code jacob .NET Web Services 5 July 4th, 2006 12:20 AM
Saving Data to DB in dynamically created control ashokkumar ASP.NET 1.0 and 1.1 Basics 2 June 23rd, 2006 01:18 PM
Chapter 13, can not visit the public property Artistry BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 August 25th, 2005 02:16 AM





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