Solved

ASP and ISAPI

Posted on 1998-02-15
6
283 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
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
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 modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
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…

749 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