Solved

ASP and ISAPI

Posted on 1998-02-15
6
271 Views
Last Modified: 2013-12-25
I wrote an ISAPI form processor.  How can i get the
results of the ISAPI extension to work with ASP?  When I
place my ASP code in, all it does is reprint what
I typed.  The ASP engine is not picking it up.
0
Comment
Question by:ivanh
6 Comments
 

Expert Comment

by:rotia
ID: 1831986
Can you explain the question a litle more?

0
 
LVL 1

Author Comment

by:ivanh
ID: 1831987
I wrote an isapi dll that process form information.  Alot
like what we would do in a cgi script, but as an ISAPI dll.
What I want to be able to do is have the asp engine
process the results of my dll and perform appropriate actions,
like get data from a db, or whatever.  Hope that helps.  If
not, then I can reexplain.

Ivan
0
 

Expert Comment

by:jloomis
ID: 1831988
Your question is still not clear.  You can execute an ASP or an ISAPI DLL by requesting its URL.  You don't call an ASP from a DLL, at least not simply.  An ugly approach would be to have you your DLL redirect to the ASP with all the parameters on the URL.

The simplest approach to solving your problem is probably to write an ASP that processes the form information and does everything else as well.  Getting form parameters from an ASP is trivial.  For example, this prints all your form parameters.  If you have specific code you need to execute in form processing that can't be scripted, you can put that code into an ActiveX object and then use that object in your ASP.


0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 1

Author Comment

by:ivanh
ID: 1831989
Hmm...Here are the steps
1. I submit a form
2. The form ISAPI dll process the info and creates the
next page.  The page it creates has ASP code in it

When the results are printed out, my ASP code is visible to the
client browser.  This tells me that the ASP engine did not
process my ASP code that was generated by the ISAPI dll.

Hope this helps
0
 

Accepted Solution

by:
vijayk earned 150 total points
ID: 1831990
anything you generate from an ISAPI dll is sent directly to the client browser and the ASP engine never gets a chance to interpret it. you have to realize that ASP will work only on a file on the disk with extension .asp in a directory having execute permission. what you could possible do is have the ISAPI dll store the generated asp file in a directory with execute permission and redirect the client browser to that location. to redirect you can either use the following line as header
"Location: /scripts/mydir/generated.asp"

or the ISAPI dll can generate a normal HTML page with JavaScript to redirect to the new location

<SCRIPT>
window.location = "/scripts/mydir/generated.asp";
</SCRIPT>
0
 
LVL 1

Author Comment

by:ivanh
ID: 1831991
I like that alternative...thanks!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…

708 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

16 Experts available now in Live!

Get 1:1 Help Now