473,320 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Can ASP, not ASP.NET, add an object to the session

Anyone know that is it possible? if yes, how?
if no, any other method can do something similar to this?
Nov 17 '05 #1
14 1256
ASP and ASP.net are completely different ISAPIs, and run under different
processes. Therefore, you can't use ASP to write to an ASP.Net Session. What
you CAN do is pass your ASP variables via QueryString or Form submission to
an ASPX page that writes the values to the ASP.Net Session. This can be done
transparently, by using Response.Redirect in the ASP page to pass the
variables in a QueryString to an ASPX page, and in the ASPX page using
Response.redirect to return to wherever you want to return to, such as the
original ASP page.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Galileo" <an*******@discussions.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
Anyone know that is it possible? if yes, how?
if no, any other method can do something similar to this?

Nov 17 '05 #2
ASP and ASP.net are completely different ISAPIs, and run under different
processes. Therefore, you can't use ASP to write to an ASP.Net Session. What
you CAN do is pass your ASP variables via QueryString or Form submission to
an ASPX page that writes the values to the ASP.Net Session. This can be done
transparently, by using Response.Redirect in the ASP page to pass the
variables in a QueryString to an ASPX page, and in the ASPX page using
Response.redirect to return to wherever you want to return to, such as the
original ASP page.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Galileo" <an*******@discussions.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
Anyone know that is it possible? if yes, how?
if no, any other method can do something similar to this?

Nov 17 '05 #3
What object you are talking about?
String is object too.

You can add string to the Session.

If object is COM object then it depends on how this object is written.
COM object which is declared as Free Threaded and aggregates FTM can be
added to the Session in ASP.

BTW: You can not write such objects in VB. Only C++.

George.

"Galileo" <an*******@discussions.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
Anyone know that is it possible? if yes, how?
if no, any other method can do something similar to this?

Nov 17 '05 #4
What object you are talking about?
String is object too.

You can add string to the Session.

If object is COM object then it depends on how this object is written.
COM object which is declared as Free Threaded and aggregates FTM can be
added to the Session in ASP.

BTW: You can not write such objects in VB. Only C++.

George.

"Galileo" <an*******@discussions.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
Anyone know that is it possible? if yes, how?
if no, any other method can do something similar to this?

Nov 17 '05 #5
Anything you add to the ASP Session object will not become a part of the
ASP.NET Session object.

"George Ter-Saakov" <no****@hotmail.com> wrote in message
news:uM*************@TK2MSFTNGP10.phx.gbl...
What object you are talking about?
String is object too.

You can add string to the Session.

If object is COM object then it depends on how this object is written.
COM object which is declared as Free Threaded and aggregates FTM can be
added to the Session in ASP.

BTW: You can not write such objects in VB. Only C++.

George.

"Galileo" <an*******@discussions.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
Anyone know that is it possible? if yes, how?
if no, any other method can do something similar to this?


Nov 17 '05 #6
Anything you add to the ASP Session object will not become a part of the
ASP.NET Session object.

"George Ter-Saakov" <no****@hotmail.com> wrote in message
news:uM*************@TK2MSFTNGP10.phx.gbl...
What object you are talking about?
String is object too.

You can add string to the Session.

If object is COM object then it depends on how this object is written.
COM object which is declared as Free Threaded and aggregates FTM can be
added to the Session in ASP.

BTW: You can not write such objects in VB. Only C++.

George.

"Galileo" <an*******@discussions.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
Anyone know that is it possible? if yes, how?
if no, any other method can do something similar to this?


Nov 17 '05 #7
As I understood it's not a requirement.

The question was about ASP and ASP session.

At least that is how I understand it.

George.

"Scott M." <s-***@badspamsnet.net> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Anything you add to the ASP Session object will not become a part of the
ASP.NET Session object.

"George Ter-Saakov" <no****@hotmail.com> wrote in message
news:uM*************@TK2MSFTNGP10.phx.gbl...
What object you are talking about?
String is object too.

You can add string to the Session.

If object is COM object then it depends on how this object is written.
COM object which is declared as Free Threaded and aggregates FTM can be
added to the Session in ASP.

BTW: You can not write such objects in VB. Only C++.

George.

"Galileo" <an*******@discussions.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
Anyone know that is it possible? if yes, how?
if no, any other method can do something similar to this?



Nov 17 '05 #8
As I understood it's not a requirement.

The question was about ASP and ASP session.

At least that is how I understand it.

George.

"Scott M." <s-***@badspamsnet.net> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Anything you add to the ASP Session object will not become a part of the
ASP.NET Session object.

"George Ter-Saakov" <no****@hotmail.com> wrote in message
news:uM*************@TK2MSFTNGP10.phx.gbl...
What object you are talking about?
String is object too.

You can add string to the Session.

If object is COM object then it depends on how this object is written.
COM object which is declared as Free Threaded and aggregates FTM can be
added to the Session in ASP.

BTW: You can not write such objects in VB. Only C++.

George.

"Galileo" <an*******@discussions.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
Anyone know that is it possible? if yes, how?
if no, any other method can do something similar to this?



Nov 17 '05 #9
This is my user-defined class
class ABC
public CC
end class

I make a instance of it and store it at the session
set ee=new ABC
ee.CC="hi"
set Session("myobject")=ee

But when i retrieve it and access the property of my
object, it said that The object does not support this
property or method, is that ASP cannot do this, or my
code has error?
set eee=Session("myobject")
response.write eee.cc
-----Original Message-----
What object you are talking about?
String is object too.

You can add string to the Session.

If object is COM object then it depends on how this object is written.COM object which is declared as Free Threaded and aggregates FTM can beadded to the Session in ASP.

BTW: You can not write such objects in VB. Only C++.

George.

"Galileo" <an*******@discussions.microsoft.com> wrote in messagenews:D58BA8C3-7D21-4C2A-AD40- 97**********@microsoft.com...
Anyone know that is it possible? if yes, how?
if no, any other method can do something similar to

this?

.

Nov 17 '05 #10
This is my user-defined class
class ABC
public CC
end class

I make a instance of it and store it at the session
set ee=new ABC
ee.CC="hi"
set Session("myobject")=ee

But when i retrieve it and access the property of my
object, it said that The object does not support this
property or method, is that ASP cannot do this, or my
code has error?
set eee=Session("myobject")
response.write eee.cc
-----Original Message-----
What object you are talking about?
String is object too.

You can add string to the Session.

If object is COM object then it depends on how this object is written.COM object which is declared as Free Threaded and aggregates FTM can beadded to the Session in ASP.

BTW: You can not write such objects in VB. Only C++.

George.

"Galileo" <an*******@discussions.microsoft.com> wrote in messagenews:D58BA8C3-7D21-4C2A-AD40- 97**********@microsoft.com...
Anyone know that is it possible? if yes, how?
if no, any other method can do something similar to

this?

.

Nov 17 '05 #11
I never worked with ASP classes but my guess would be that you can not keep
them in the Session.

George.

<an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
This is my user-defined class
class ABC
public CC
end class

I make a instance of it and store it at the session
set ee=new ABC
ee.CC="hi"
set Session("myobject")=ee

But when i retrieve it and access the property of my
object, it said that The object does not support this
property or method, is that ASP cannot do this, or my
code has error?
set eee=Session("myobject")
response.write eee.cc
-----Original Message-----
What object you are talking about?
String is object too.

You can add string to the Session.

If object is COM object then it depends on how this

object is written.
COM object which is declared as Free Threaded and

aggregates FTM can be
added to the Session in ASP.

BTW: You can not write such objects in VB. Only C++.

George.

"Galileo" <an*******@discussions.microsoft.com> wrote in

message
news:D58BA8C3-7D21-4C2A-AD40-

97**********@microsoft.com...
Anyone know that is it possible? if yes, how?
if no, any other method can do something similar to

this?


.

Nov 17 '05 #12
I never worked with ASP classes but my guess would be that you can not keep
them in the Session.

George.

<an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
This is my user-defined class
class ABC
public CC
end class

I make a instance of it and store it at the session
set ee=new ABC
ee.CC="hi"
set Session("myobject")=ee

But when i retrieve it and access the property of my
object, it said that The object does not support this
property or method, is that ASP cannot do this, or my
code has error?
set eee=Session("myobject")
response.write eee.cc
-----Original Message-----
What object you are talking about?
String is object too.

You can add string to the Session.

If object is COM object then it depends on how this

object is written.
COM object which is declared as Free Threaded and

aggregates FTM can be
added to the Session in ASP.

BTW: You can not write such objects in VB. Only C++.

George.

"Galileo" <an*******@discussions.microsoft.com> wrote in

message
news:D58BA8C3-7D21-4C2A-AD40-

97**********@microsoft.com...
Anyone know that is it possible? if yes, how?
if no, any other method can do something similar to

this?


.

Nov 17 '05 #13
I think depending on the object if it implemnts ISerializable, it can be
added to the session.

"Galileo" <an*******@discussions.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
Anyone know that is it possible? if yes, how?
if no, any other method can do something similar to this?

Nov 17 '05 #14
I think depending on the object if it implemnts ISerializable, it can be
added to the session.

"Galileo" <an*******@discussions.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
Anyone know that is it possible? if yes, how?
if no, any other method can do something similar to this?

Nov 17 '05 #15

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

Similar topics

3
by: VijayShankar | last post by:
Can u be more specific on your question Anyway its not like Session variables are available for sometime and not available for sometime. When your session starts it is very much available...
8
by: Lichunlin | last post by:
Dear all, Sorry for cross posting. I have one page, create an object and save it in session scope, and then redirect to another page.In the new page, the object existed in session object, but...
7
by: kon george | last post by:
Can somebody assist. I build this code on a dev laptop and copied across the entire code to a Windows 2003 server with 1.1 framework. It is basic ASP.NE T that uses web service for SQL Server...
6
by: Scott Zabolotzky | last post by:
I'm trying to pass a custom object back and forth between forms. This custom object is pulled into the app using an external reference to an assembly DLL that was given to me by a co-worker. A...
2
by: Boban Dragojlovic | last post by:
I'm building a complex web-based reservations system. Gathering the user's data requires between 8 and 15 pages (depending on which options they are interested in). I use the "Session" object to...
5
by: Pross | last post by:
I've got an ASP.NET application and I need some information on every page like the user's name as well as a collection listing which sections of the application the user has access to. I could...
2
by: John Mullin | last post by:
We are having a problem which appears similar to a previous posting: http://groups.google.com/groups?hl=en&lr=&frame=right&th=d97f552e10f8c94c&seekm=OZw33z9EDHA.2312%40TK2MSFTNGP10.phx.gbl#link1 ...
13
by: | last post by:
Simple question, I think... I'm storing an object in the Session object. In the code behind I read that object: trx = CType(Session("Transaction"), BOCSTransaction) If I change any...
3
by: Alex Maghen | last post by:
I want to create an object which is attached to the specific user session and I want to be able to access that object directly throughout the Pages, Page Controls, and Master Pages of the site. ...
4
by: Don Miller | last post by:
I am using a Session variable to hold a class object between ASP.NET pages (in VB). In my constructor I check to see if the Session variable exists, and if it doesn't, I create one and populate it...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.