Smart Image Processor ASP.NET
Display uploaded images
How do you display images from a database on a web page
You resized those images, but how do you pull them out of the database and
display them on your page?
That is exactly what we are going to do now. Read through this carefully.
How to do it
- Open page
Open your aspx file that will display the resized image.
- First create a dataset
- Edit the area where you want to show the image
- Click OK
- Save the file in your site
1. From the Server Behaviors, choose Dataset and name it Dataset1.
2. Select the datasource connection.
3. In the dropdown select the Table.
4. In Columns select the fields.
5. Click OK.
6. Press CTRL-S to save your file.
1. Click on Insert Image.
2. Select Data Source.
3. Open up the Recordset by clicking the + sign.
4. Select the appropriate field that you saved the images into.
5. Important! This next step is ONLY necessary if you DID
NOT save the image with the full path in the database!
In URL section enter the name of the upload folder that your
images are. Right at the beginning.
You will need to save the file in your site. Check it out!
George Petrov
George Petrov is a renowned software writer and developer whose extensive skills brought numerous extensions, articles and knowledge to the DMXzone- the online community for professional Adobe Dreamweaver users. The most popular for its over high-quality Dreamweaver extensions and templates.
George is also the founder of Wappler.io - the most Advanced Web & App Builder