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

x
?
Solved

Cgi write ASP page ?

Posted on 1999-07-20
3
Medium Priority
?
325 Views
Last Modified: 2013-12-25
Hello All !!

I know how to write an html page via the cgi
I want to do the same with asp page .
when i write Content-type: text/asp\r\n\r\n
i get the download window insted of geting the
asp page in my browser .
what am i doing wrong ?

Thanks
Neta !!


0
Comment
Question by:neta
[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
  • 2
3 Comments
 
LVL 1

Expert Comment

by:BillyAbbott
ID: 1835109
asps are executed server side, and shouldn't be sent to the client. The web server browses the asp page, and executes the script in order to form the html.

by writing a text/asp at the front you are telling the browser that it is an asp page, which it can;t interpret, and so it tries to download it.

to write html via cgi you write to the standard out (i think) which the web server should then send unaltered onto the browser. to write html via cgi you need to write to the response object (in vbscript, or whatever the likewise object is in whatever other language you are doing asps in)

hava look at www.activeserverpages.com at their tutorials for some more info.
0
 

Author Comment

by:neta
ID: 1835110
Thanks

0
 
LVL 1

Accepted Solution

by:
BillyAbbott earned 200 total points
ID: 1835111
is that a good enough answer?
0

Featured Post

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

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

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…
This article will show, step by step, how to integrate R code into a R Sweave document
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

660 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