Solved

Very similiar web application to ISAPI

Posted on 2003-12-07
11
394 Views
Last Modified: 2013-11-18
I would like to use VB to create a dll that is similiar to ISAPI. This dll should
be able to set/get cookies or session, as well as handle request (form)
from user. How am I going to do this ? Any sample or resource on the web ?
0
Comment
Question by:nicolle
  • 6
  • 5
11 Comments
 
LVL 28

Accepted Solution

by:
AzraSound earned 125 total points
ID: 9893371
"HOWTO: Obtain ObjectContext with ObjectControl Inside VB COM DLL From ASP and MTS"
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q238/2/74.asp&NoWebContent=1
0
 

Author Comment

by:nicolle
ID: 9893450
AzraSound,

I know how to do ActiveX Dll. What I want is to be able to call the dll in url like

http://127.0.0.1/mydll.asp?name=test
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 9893580
Then it must be an ISAPI dll, which I don't believe is a capability of Visual Basic.  Unless, you mistyped your example and you meant:

http://127.0.0.1/mydll.dll?name=test

and not mydll.asp.  You can embed an ActiveX dll to be called from an ASP page and get references to the instrinsic Request, Response, Session, etc. ASP objects within the dll.
0
 

Author Comment

by:nicolle
ID: 9899674
OK ! I am thinking doing my code in either ASP or Java Servlet. The thing is I don't want to let
anyone see my code. Thus, I want to do the code in dll which is ISAPI.

Do you have any recommendation for me ?
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 9899718
You can do an ActiveX DLL and your code will be compiled and hidden.  Look at the article I originally linked you to.  It talks about how to get the intrinsic ASP objects referenced in your ActiveX DLL, so you can do things like:

Response.Write "some html code"

from within your ActiveX DLL.  If you are so inclined, you can generate the entire page from the dll.  I have seen people do that before.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:nicolle
ID: 9899807
Java servlet is stored in memory after first used, so the second visit and so on is loaded from
the memory. How about ActiveXDLL ?
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 9900287
No, you either need to store information in Session variables, or to a database (using a SessionID to identify the user across multiple page requests).
0
 

Author Comment

by:nicolle
ID: 9900595
No, I am not talking about how to store the information. What I mean is after first used the whole java servlet in loaded in the memory, which make it runs faster. Does ActiveX Dll behave the same way ? For example in CGI script, 10 users visit the web site, which mean 10
CGI script are loaded.
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 9901266
There is object pooling in COM+ but I dont think VB components can utilize it because of how they are threaded.  To maintain instances across requests would require an out of process component (ActiveX EXE).
0
 

Author Comment

by:nicolle
ID: 9917746
If I put all of my html code in ActiveX DLL, will it slow ?
0
 
LVL 28

Expert Comment

by:AzraSound
ID: 9917916
If its a high traffic site, it may slow a bit, so I would look at including in the dll only the important code you really need to hide.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to open Waze.com/livemap from address saved in DB? 26 178
Validating VB6 Function 19 56
Add a task in Outlook from access 11 35
Added a column screws up code 5 50
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

863 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

27 Experts available now in Live!

Get 1:1 Help Now