Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 310
  • Last Modified:

ASP and ISAPI

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
ivanh
Asked:
ivanh
1 Solution
 
rotiaCommented:
Can you explain the question a litle more?

0
 
ivanhAuthor Commented:
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
 
jloomisCommented:
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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
ivanhAuthor Commented:
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
 
vijaykCommented:
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
 
ivanhAuthor Commented:
I like that alternative...thanks!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now