0 Replies - 778 Views - Last Post: 26 July 2013 - 11:53 AM Rate Topic: -----

#1 AOM_Set  Icon User is offline

  • D.I.C Head

Reputation: 6
  • View blog
  • Posts: 151
  • Joined: 18-December 10

Get images from server (database?) and display it

Posted 26 July 2013 - 11:53 AM

I have created the front-end part of a site, but now I need to do some server-side programming, which is my weakness.

What I have made so far, is a slide slow, where image paths are hardcoded in the html page, like this:

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="slideshow">             
         <img src="DiasImages/Pic1.jpg" alt="" class="active" />  
         <img src="DiasImages/Foto%2048.jpg" alt="" />  
         ...
    </div>
</asp:Content>



But now I will upload images to a server, and I wan't images to be fetched from the server and shown. So I don't want to hardcode
every new image that is uploaded to the server in the html page, but rather, this should be shown automatically once uploaded.
I'm not really sure what to google for to find a tutorial on this exact problem I have. Can anyone help me out? Or maybe you have the perfect tutorial or link to help me solve my problem. Thanks in advance.

And another thing.
I am gonna be using a MySQL database, but I guess images should not be saved in the database tables itself? Won't that affect perfomance eventually, as the size of images grow?

Ps. I am using asp.net

Is This A Good Question/Topic? 0
  • +

Page 1 of 1