Home | Advertising Info143 USERS CURRENTLY ONLINE   
   Site Search Contact Us Monday, May 28, 2018  

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.


We didn't realize
the site was so popular.

Other Stuff

Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa 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 - 2018 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.

PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net 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