Forums

ASP

This topic is locked

load in a frame with an url indexed in a database

Posted 05 Jan 2002 17:56:51
1
has voted
05 Jan 2002 17:56:51 Bernard Roux posted:
Hello !

It may be very simple for many of us, but I don't understand what's wrong in my code.

What I want to do :
I have a database of documents (html or pdf) and I want make a frameset (named document.asp) with two frames :
<ul><li> in the top, an asp page (banniere.asp) display some informations around the document. </li><li> in the bottom frame, I want to load the document </li></ul>

In the url, a parameter ("id" is given and in the database I can find the expected document. All is right with the top frame : when the url is like "document.asp?id=2", the frameset send (by Request) the parameter to the top frame and all is right in banner.asp.

The problem is with the bottom. Surely, I don't understand the right manner to work with strings, variables and urls. And 404 occurs each time.

Can an expert help me with this ? Thanks you in advance for the little time you need to explain me what is wrong.

And I have a more terrific (and recursive) question : how to do if the database source is also in a database ?

Reply to this topic