473,548 Members | 2,691 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

User-defined object with session scope

How can I give a user-defined object session scope? From

http://www.microsoft.com/windows2000...sp/iiwaobu.htm

I gather that it can be done, but there are no examples. Simply setting

Set Session("tag") = new MyClass

doesn't work.

Thanx
Simon
Jul 22 '05 #1
3 1483
> How can I give a user-defined object session scope?

For what possible purpose? A database is a much better and more scalable
place to maintain state.

Have you read http://www.aspfaq.com/2053 and the references it guides you
to?
Jul 22 '05 #2
Actually, I have an ASP script which generates an object which attributes
are used as predefined values in a form. The user can then choose to use
these suggestions o overwrite them with his own values. As we're developing
the entire site using VBS objects, I would have liked the script the
generate a "proposal" object, put that in session scope, and on the next
page read that object and populate the form fields.

I guess, with VBS objects in session scope being essentially not available
(funny enough, J2EE server easily do the task!), I'll either go with putting
each attribute as simple session variable or merging the object generating
script with the form, thereby violating the MVC pattern, but well, this
isn't university, it actually has to work ;-)

thanx anyway
simon
"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:u%******** ********@TK2MSF TNGP14.phx.gbl. ..
How can I give a user-defined object session scope?


For what possible purpose? A database is a much better and more scalable
place to maintain state.

Have you read http://www.aspfaq.com/2053 and the references it guides you
to?

Jul 22 '05 #3
Have your object persist its data into a session variable when destroyed and
reload from the session variable when created (or include separate load and
save methods).

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Simon Niederberger" <si***@sincore. ch> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Actually, I have an ASP script which generates an object which attributes
are used as predefined values in a form. The user can then choose to use
these suggestions o overwrite them with his own values. As we're developing the entire site using VBS objects, I would have liked the script the
generate a "proposal" object, put that in session scope, and on the next
page read that object and populate the form fields.

I guess, with VBS objects in session scope being essentially not available
(funny enough, J2EE server easily do the task!), I'll either go with putting each attribute as simple session variable or merging the object generating
script with the form, thereby violating the MVC pattern, but well, this
isn't university, it actually has to work ;-)

thanx anyway
simon
"Aaron [SQL Server MVP]" <te*****@dnartr eb.noraa> wrote in message
news:u%******** ********@TK2MSF TNGP14.phx.gbl. ..
How can I give a user-defined object session scope?


For what possible purpose? A database is a much better and more scalable place to maintain state.

Have you read http://www.aspfaq.com/2053 and the references it guides you to?


Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4982
by: Lord Asriel | last post by:
I'm a newbie in mysql and I've a question about user definition in Mysql. According to informations collected from manuals I believed that a user definition specifying host="%" on mysql server 'A' granted me connection from whatever client (with command "mysql -hA -uuser -p"); but executing that command from server, to say, 'B', mysql...
2
3070
by: Sandman | last post by:
Just looking for suggestion on how to do this in my Web application. The goal is to keep track of what a user has and hasn't read and present him or her with new material I am currently doing this by aggregating new content from all databases into a single indexed database and then saving a timestamp in the account database (for the...
3
4119
by: zlst | last post by:
Many technological innovations rely upon User Interface Design to elevate their technical complexity to a usable product. Technology alone may not win user acceptance and subsequent marketability. The User Experience, or how the user experiences the end product, is the key to acceptance. And that is where User Interface Design enters the...
1
7549
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a dropdown in UC1 _________________________ 1) MainPage_Load 2) User Control_1 Load
3
1943
by: Jiho Han | last post by:
Should ASPNET user belong to the local Users group? I may have made some changes that affected my workstation setup and I am experiencing some unexpected behaviors. For example, I have my IIS set up with anonymous login and have ASP.NET running. My ASP.NET application then creates a log file and writes to it during its course. The only...
1
2118
by: Robert Howells | last post by:
Perhaps I'm just too new at this to pull it off, or perhaps it's just bad architecture. I'd appreciate some feedback on the the wisdom (or lack thereof) in attempting the following: I'm not new to programming, but I am new to ASP.NET and Web application design in general... loved the concept of user controls and dynamically adding them to a...
1
2232
by: Demetri | last post by:
I'm trying to determine if we want to use panels or user controls for our pages. Our primary concern is performance, page loading and posting speed. To illustrate my question, lets use the Customer Orders scenario: Problem: User needs to view orders and and edit, add, save on one page called Orders.aspx. To begin with the page contains a...
3
10907
by: Dmitry | last post by:
I am trying to figure out how to pass set of credentials to System.IO Challenge is: App is running under one set of credentials, but via GUI user have a chance to enter another set. I would like to be able to use supplied credentials with System.IO versus using default credentials that app is running under. So far I am forced to use WMI...
13
3229
JodiPhillips
by: JodiPhillips | last post by:
G'day, I have a silly and simple problem that I need some guidance with. Due to the way our network is set up, I am unable to use the group permissions for Access and have had to implement log in procedures via a log in table within the database. This works fine. I have now expanded this table to include further data about the authorised...
1
20348
by: =?Utf-8?B?Qi5BaGxzdGVkdA==?= | last post by:
Hi all, This is something that I have been toying with for about a week now. What I want to achieve is Install a Service with Customised parameters (using InstallUtil.exe) for User Name. Example (C#); public class MyServiceInstaller : System.Configuration.Install.Installer { private System.ServiceProcess.ServiceProcessInstaller...
0
7518
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7444
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7711
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7467
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7805
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5367
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5085
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3478
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1932
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.