Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Already image path is being is stored in database... I want to retrieve it and want to display images in asp pages(IF I CLICK A HYPERLINK OR BUTTON IMAGE SHOULD BE DISPLAYED) ...

Plz help with sample code.

Regards
Jose
Posted

Use an Image control and set ImageUrl as the path retrieved from the database in the click event of button.

If you are looking for client side slideshow check this,

Slideshow using Asynchronous Javascipt and XML A.K.A Ajax[^]

Let us know if you get your solution.
 
Share this answer
 
I am considering you are using ASP (as tagged). Do something like this:
<a href="UploadedFiles/<%=oRst.Fields("FileName").Value %>" ><%=oRst.Fields("FileName").Value %></a>

where,
oRst is your Recordset object.
FileName is the Column name which stores file.
UploadedFiles is a folder in the same directory as your website, where the files are stored OR better use Server.MapPath() to map the specified relative or virtual path to the corresponding physical directory on the server.

I would suggest you to buy a book or read some samples on the net because it is a very basic question and you could have at least searched for it before asking.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900