Home | Advertising Info67 USERS CURRENTLY ONLINE   
   Site Search Contact Us Thursday, May 26, 2016  

User Management Application with web based screens that allow you to manage users.
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.

Try a free httpZip trial now and compress for less!

We didn't realize
the site was so popular.

Other Stuff

Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds

(Advanced)  (Components)  (Database)  (General)  (Vbscript)


Subject: Re: Calling a method on a ASP page from a component
From: Mike Barger
Date: 12/10/1999 12:02:30 PM


ok here goes some code snippits using object context which gives you a handle back to the environment from which the object was instanciated...

Part of your DLL may look like this (forgive the line wraps) :

clsEcho: demonstrates ObjectContext
Make sure you include:
"Microsoft Transaction Server Typs Library"
in your project references.
after compiling place the object in MTS
Class clsEcho
Public Sub Proxy(ByVal astrMessage as String)
Dim objContext as ObjectContext
Dim strEcho as String

Set objContext = GetObjectContext()

strEcho = objContext("Echo") astrMessage
objContext("Response").Write strEcho

Set objContext = Nothing
End Sub

End Class

Part of the asp page may look like this (forgive the line wraps):
demo.asp page
Option Explicit

Function Echo(astrMessage)
Echo = "Echo: " & astrMessage
End Function

Dim objEcho

Set objEcho = Server.CreateObject("Echo.clsEcho")

objEcho.Proxy "Mike"

Set objEcho = Nothing

This should return the text "Echo: Mike" to the browser.

Previous Message


   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2016 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages asp search engine active server page asp application components tutorial CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com