Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Very similiar web application to ISAPI

Posted on 2003-12-07
11
Medium Priority
?
403 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
[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
  • 6
  • 5
11 Comments
 
LVL 28

Accepted Solution

by:
AzraSound earned 500 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

705 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