Ask a Question related to Dreamweaver AppDev, Design and Development.
-
acidrain9 #1
get url from database?
i have a datbase file set up and each item has specific information for each
item. each item also has a pdf file associated with it. how can i create a
dynamic link on the page that will allow people to download the pdf file
associated with the item.
i am using dreamweaver and access with asp.net.
thanks
acidrain9 Guest
-
MySQL Database not retrieving the full database
Hi, I am using MySQL and PHP for my repository. It has 500+ records. till now it was displayiing all records in the database, but since from one... -
Import Data from flat-database to relational-database
Before I start I need some tips and pleas excuse my bad english. I have two databases, one is flat and one is a relational database. example ... -
NEWBIE HELP Import Data from flat-database to relational-database
I want to import Data from a simple Database, which contains all Information in one big record into a relational Database and split up the big... -
Passing database info to page allow user input then pass into another database
Hi I really am going crazy! I'm using VBScript, ASP, and SQL My page reminds me of a shopping cart but looking at shopping cart examples has not... -
Another user has modified the contents of this table or view; the database row you are modifying no longer exists in the database;
Hi, I am testing a trigger that and I am getting this error message saying "Another user has modified the contents of this table or view; the... -
darrel #2
Re: get url from database?
> i have a datbase file set up and each item has specific information for
eachIt depends on where you store the PDF. If it something simple, like all PDF> item. each item also has a pdf file associated with it. how can i create a
> dynamic link on the page that will allow people to download the pdf file
> associated with the item.
> i am using dreamweaver and access with asp.net.
files are in a folder called documents/pdfs, then you can build your url
like this:
dim pdfLink as string
dim pdfFilename as string = (go get the filename from the DB)
pdfLink = "<a href='/documents/pdfs/" & pdfFilename & "'>link</a>"
-Darrel
darrel Guest
-
JMHooten #3
Re: get url from database?
....Or you can save the full url of the PDF in the database, and create a link
to it like this:
<SCRIPT Language="VB" Runat="Server">
Sub Page_Load(Src As Object, E As EventArgs)
Dim LinkSRC as String
LinkSRC = DSyourDatabase.FieldValue.("ColumnWithURL", Nothing)
hlPDFLInk.NavigateUrl = linkSRC
End Sub
</SCRIPT>
...
<BODY>
<FORM Runat="Server">
<asp:HyperLink
NavigateURL="#"
Text="Download My PDF"
Target="_Blank"
Runat ="server" />
</FORM>
</BODY>
JMHooten Guest



Reply With Quote

