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

x
?
Solved

ASP and ISAPI

Posted on 1998-02-15
6
Medium Priority
?
298 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
[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 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
Quick Start: DOCKER

Sometimes you just need a Quick Start on a topic in order to begin using it.. this is just what you need to know to get up and running with Docker!

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

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.

Question has a verified solution.

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

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

670 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