Solved

Get an Asp Session variable value from an activeform application

Posted on 2001-07-09
1
220 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 200 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

726 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