Solved

Get an Asp Session variable value from an activeform application

Posted on 2001-07-09
1
212 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
1 Comment
 
LVL 13

Accepted Solution

by:
Epsylon earned 200 total points
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now