Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to insert ASP database files into my html?

Status
Not open for further replies.

Hisakata

Technical User
Sep 24, 2002
36
US
Hi guys, I am working on the front end of a web page and there is a back end guy doing the database side. How do I sync his asp files to mine? Is it as simple as inserting a <body> tag and his php files will show up? Sorry I am unfamiliar with asp. I am using dreamweaver studio 2004 on a pc platform. Thanks very much!
 
You will have to be much more descriptive than this.

What is it you are trying to do?
 
A web site may be on a web server that runs ASP scripts; or it may be on a web server that runs PHP script; but it is unlikely it is on a server that runs both. They are alternative systems for generating HTML.

Your work is most likely HTML. You could have links to PHP or ASP pages. If the database content is completely separate from your content, then that might be how it will work.

More likely your work is the static content, in HTML, and his work is the dynamic content, HTML generated by a script that retrieves data from a database; and the two must be merged into a single page. In this case the most likely method will be that your static content will become part of an ASP or PHP script.

Static HTML -
This file is named welcome.html
Code:
<HTML>
<HEAD></HEAD>
<BODY>
Hello
</BODY>
</HTML>

Dynamic HTML generated by ASP -
This file is named find_name.asp
Code:
<%
Dim visitorName

'database access code resulting in the name of the person
'  who is viewing the page.
...
visitorName = rsGet.Fields("firstname").value
%>

The two files could be combined like this -
This is a new file named welcome.asp
Code:
<!-- #include virtual="/find_name.asp" -->

<HTML>
<HEAD></HEAD>
<BODY>
Hello <%= visitorName %>
</BODY>
</HTML>
 
YEssssssss that is what I am looking for. Thank you so much rac2!!!!!

Are there any tutorials or good books that will explain it as you have? Everything I have purchased has been trying to read a foreign language to me. Thanks so much!!

My html pages are created and bascially i need to input the database content within them. I just wanted to know how to "call" them.
 
The ASP tutorial (and then the ADO tutorial for getting stuff into and out of the database) at is pretty good, and is pretty gentle at taking you through it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top