FP_ASP component

N

Neda

Dear Google Group members,

I need some help with FrontPage. Usually I code straight html, so I
don't use this product. But I have created a script for a client that
keep disappearing because he opens the page in FrontPage. Here is the
scenario:
He has an ASP component on top of the page that inserts some fields
into a database for him. Here is how it starts:
<%
' FP_ASP ASP Automatically generated by a Frontpage Component. Do not
Edit.

On Error Resume Next
......

Now here in this code there is also this line towards the end:
Response.Redirect "ThankYou/thankyou.htm"

Now, I need to enter some of my ASP code that I wrote by hand to be
able to send out an email. I need to enter the code before this
Redirect, so it can execute. I have treid creating the script above
this FP code, but it moves it below, so it still does not execute.
When I save the code with a different editor, I am able to save it and
it executes. But I need to be able to trick FrontPage into letting
put my code in between the line above and the redirect. If anyone can
please please help me out. My client is getting frustrated, because
every time he opens his site in FrontPage, the code I put there
disappears and he stops getting the emails.

Thank you vey much,

Neda
 
T

Thomas A. Rowe

To avoid this issue, as you really can only modified the FP generate ASP code that is in grey. FP
will always rewrite any code that it generates.

It would be best to write the whole page from scratch or modify the page and never open in FP.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
A

Andrew Murray

Neda said:
Dear Google Group members,

I need some help with FrontPage. Usually I code straight html, so I
don't use this product. But I have created a script for a client that
keep disappearing because he opens the page in FrontPage. Here is the
scenario:
He has an ASP component on top of the page that inserts some fields
into a database for him. Here is how it starts:
<%
' FP_ASP ASP Automatically generated by a Frontpage Component. Do not
Edit.

On Error Resume Next
.....

Now here in this code there is also this line towards the end:
Response.Redirect "ThankYou/thankyou.htm"

Now, I need to enter some of my ASP code that I wrote by hand to be
able to send out an email. I need to enter the code before this
Redirect, so it can execute. I have treid creating the script above
this FP code, but it moves it below, so it still does not execute.
When I save the code with a different editor, I am able to save it and
it executes. But I need to be able to trick FrontPage into letting
put my code in between the line above and the redirect. If anyone can
please please help me out. My client is getting frustrated, because
every time he opens his site in FrontPage, the code I put there
disappears and he stops getting the emails.

Thank you vey much,

Neda

You mentioned this yourself at the top of your post, but seemed to have ignored
it: "this ASP code was generated by a frontpage component DO NOT EDIT" - so any
changes you make will not be saved, if you add any code to the code that
frontpage generates with the wizard (database results/interface).

You can't combine your hand-coded ASP with Frontpage-generated ASP.
 
N

Nicholas

This is one of the most annoying things about FP. I
design pages and hand them to the IT guys to make them
work, and then I can't touch them.

Is it possible to put ASP code 'off the page' like you can
with Javascript. Does it work if you put the code in an
include page, maybe???

-----Original Message-----
To avoid this issue, as you really can only modified the
FP generate ASP code that is in grey. FP
will always rewrite any code that it generates.

It would be best to write the whole page from scratch or
modify the page and never open in FP.
 
T

Thomas A. Rowe

FP can work with pages that have ASP code just fine, it all depends on how the pages where coded.
Avoid using the FP database component, if the code will need to be modified, as hand coding will
usually result in fewer overall line of code then when generated via FP.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top