Home | Advertising Info94 USERS CURRENTLY ONLINE   
   Site Search Contact Us Saturday, November 01, 2014  
 
 


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



DISCUSSION ARCHIVES
 
Try a free httpZip trial now and compress for less!


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)




ASPProtect

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



 

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 - 2014 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