?
Solved

Get an Asp Session variable value from an activeform application

Posted on 2001-07-09
1
Medium Priority
?
221 Views
Last Modified: 2010-04-06
how can i Get an Asp Session variable value from an   activeform  application,please show me the source
code.
0
Comment
Question by:bluestar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 13

Accepted Solution

by:
Epsylon earned 400 total points
ID: 6264962
Embed the object on an ASP page with a parameter named SessionID and as value <%=session.sessionid%>:

<object width="280" height="180" classid="clsid:6098C4FD-B943-40C7-81B0-427AEE5D92B6">
<param name="SessionID" value="<%=session.sessionid%>">
</object>

When a user request this page the session id will be parsed to the ActiveForm. Make sure the classid matches yours.


Now add a read/write property to your ActiveForm named SessionID type Long. The implementation should look like this:

procedure TMyActiveForm.Set_SessionID(Value: Integer);
begin
  Label1.Caption := IntToStr(Value);
end;

function TMyActiveForm.Get_SessionID: Integer;
begin
 // you can leave this empty but this method must be defined
end;
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question