Solved

ASP and ISAPI

Posted on 1998-02-15
6
284 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
Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need some help with powershell script 5 66
PS call executable Files in Order 4 35
IDE for Python 5 109
List Boot time of several computers 4 19
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

710 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