473,385 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Using Replace and Server.Execute

I have an application where users create pages using a WYSIWYG editor and
the content is stored in the database. For "custom tags" the stored html
will have something like {%Contact_Form%}.

So let's say the html of the page is:
<body>
<html>
This is my form:<br>
{%Contact_Form%}
</html>
<body>

Ok? Then, when the page renders I do this:

<%
RenderedData = rs_Page("MainData")
RenderedData =
Replace(RenderedData,"{%Contact_Form%}",Server.Exe cute("/IncludedFiles/PageComponents/TESTFORM.asp"))
%>

<%=RenderedData%>
Ok. The problem is this, when the page renders, the contact form is
inserted BEFORE the text where as my original "string" should have had the
form AFTER the text. When I don't use Server.Execute and just replace with
some dummy text or something, everything renders in the appropriate order.
I've done tests where the TESTFORM.asp page just has some text in it and the
same results happens (concluding that it's not a problem with the coding in
that page)

Any ideas on why this isn't rendering in the appropriate order? Shouldn't
the "custom tag" be just simply replace with the html in this included file?

Is there another way to call this file so this works?

thanks for any help.

-Phil


Jul 22 '05 #1
0 1248

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: BCS | last post by:
I have a web site in which the site administrator can input information to a database through a web form. The information then gets displayed on ASP pages. One field is a large text field. Of...
0
by: Phil Grimpo | last post by:
I have an application where users create pages using a WYSIWYG editor and the content is stored in the database. For "custom tags" the stored html will have something like {%Contact_Form%}. So...
3
by: Phil Powell | last post by:
'GET THE HTML CONTENT FOR DISPLAY BAND ORIGIN Dim bandOriginDropdown On Error Resume Next set scraper = Server.CreateObject("Microsoft.XMLHTTP") if err then bandOriginDropdown = "" else...
4
by: Japhy | last post by:
Hello, I'm am pulling data from a mysql db and want to use the data to populate a <ul. Here are relavent parts of my code : $wohdate = mysql_result($wohRS,$wohndx,woh_date); $woh_display...
0
by: Balakrsihna | last post by:
Hi All, Can anyone tell me how to replace an image in MS Word 2003 using c#.net. I am converting an html file to word doc and sending this as attachment using System.Web.Mail; the...
1
by: Nick | last post by:
I am working on a website for a client and one of their requirements was to have a mailing list. I decided to XSLT to transform "templates" to HTML so that editing was very easy and less time...
1
by: bsprogs | last post by:
I am currnetly programming a file hosting website in PHP and I am slowly integrating AJAX into the website. Here is my problem: The user uploads the file. The server processes the file and...
0
by: David | last post by:
- Are there any peculiarities with using curs.executemany(...) vs. multiple How many times are you calling execute vs a single executemany? The python call overhead will add up for thousands of...
10
by: Chris H | last post by:
Greetings, I'm trying to update an address field with "standard" abbreviations so that I can do a comparison of various accounts to one another on the address. I can update a set of records for...
1
by: Weltzy | last post by:
Hi, I am new to SQL SERVER 2005 and want to do the following using VB6: Set lvWrks = CreateWorkspace("", "sa", "bulemia22", dbUseODBC) Set cns =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.