BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Run ASP from WebServer.Response ?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker
View previous topic :: View next topic  
Author Message
B.Bruno
Guest





PostPosted: Mon Feb 26, 2007 7:51 pm    Post subject: Run ASP from WebServer.Response ? Reply with quote



Hello,

I would like if anyone know if it's possible to run or load ASP page, I load
my ASP page to myASPPage : TStringList, like this :

WebApplication.Response.Content := myASPPage.Text;
WebApplication.Response.SendResponse;

finally I got a blank page and the code is not executed?
I need to do something on IIS server ?

I would like to avoid to create temp file, if there other solution...

Thank you.
Back to top
Alex
Guest





PostPosted: Mon Feb 26, 2007 9:52 pm    Post subject: Re: Run ASP from WebServer.Response ? Reply with quote



On Feb 26, 7:51 am, "B.Bruno" <nos...@nospam.com> wrote:
Quote:
Hello,

I would like if anyone know if it's possible to run or load ASP page, I load
my ASP page to myASPPage : TStringList, like this :

WebApplication.Response.Content := myASPPage.Text;
WebApplication.Response.SendResponse;

finally I got a blank page and the code is not executed?
I need to do something on IIS server ?

I would like to avoid to create temp file, if there other solution...

Thank you.

The only way to execute the ASP code is if you use a Page Producer set
the language to jscript or vbscript and you must use websnap with a
TWebDispatcher if you want to keep it like a webbroker app.

After you assign your asp page to the page producer then do
Response.Content:=MyPageProducer.Content - at this point the asp would
have been already execute and content would be created. Note that in
the asp page you dont need to use the ASP intrinsic objects, if you
want to create a database object in asp would be : set
db=server.createobject("ADODB.Connection") well in webbroker/websnap
drop the server part like: set db=createobject("ADODB.Connection"), so
its really just vbscript, asp intrinsic object is not there.

Hope this helps
Back to top
Hans van Leth
Guest





PostPosted: Mon Feb 26, 2007 11:24 pm    Post subject: Re: Run ASP from WebServer.Response ? Reply with quote



Quote:
I would like if anyone know if it's possible to run or load ASP page, I load
my ASP page to myASPPage : TStringList, like this :

WebApplication.Response.Content := myASPPage.Text;
WebApplication.Response.SendResponse;

Bruno,

that is not possible. IIS can either handle the ASP page, or hand the
page to your webapplication, but not both.

If the client requests an asp page (*.asp or *.aspx) then IIS hands the
request to asp. If the client requests a page for which you defined a
webaction, it will be passed to your application.

HTH,

Hans.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.