Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old March 16th, 2004, 12:41 PM
Registered User
Join Date: Mar 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Static members global to client apps

Thanks in advance for any help. I'm using asp .net with c#.

I'm finding the value in a static member in a webform class is showing up in every client (browser instance). This is very dangerous. I thought a static would not be global to every webapp instance on every machine accessing the server. Ex:
public class WebFormX : System.Web.UI.Page
  protected static string sCity;
// if client instance 1 sets sCity="miami" then all other client instances get sCity="miami" on their next refresh. I realize we're dealing with server variables but there must be a way to keep static values unique to each session. - How?



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to declare the global variable in global.asax? calyn_gately ASP.NET 3.5 Basics 0 August 6th, 2008 08:06 PM
No global.asa activity when client is a VM Maugris Classic ASP Components 1 February 21st, 2008 03:16 PM
non-static reports to static html files miamikk ASP.NET 2.0 Basics 0 June 4th, 2007 01:48 PM
Callin Static Members from .NET Dll in VBA syoguran VB How-To 0 March 13th, 2006 03:37 AM
A problem with static data members in c++ amotsn C++ Programming 2 August 20th, 2003 02:22 AM

All times are GMT -4. The time now is 04:48 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.