Welcome to the tutorials of Pure ASP.NET Upload.
What will you learn:
- How to create a file upload
- restrict certain files or sizes of files from being uploaded
- upload files and insert them in a database
- and much more...
What will you learn:
In this tutorial we will explain how to make a nice list of records with images. A detail page after the upload page.
To make a list of images you have to:
You can start with a new blank page.
You will need a recordset to get a list of all records.
Put your cursor on the page. Open the Bindings Panel. Select Name and click insert.
You will see {rs.Test.name} on your page.
Next we will insert the image.
Then click on Insert - Image. Instead of selecting an existing image from the File system, you should choose Data Sources !
Then select the name field from the rsTest recordset. Because we uploaded all pictures to the images folder and store only the filename in the database, you need to put images/ before the database field.
Now that we have inserted the image, we need to make a repeat region from this record. So you can see a list of all records.
First select the whole first row, then choose Repeat Region from the Server Behaviors palette.
Now we have a full list of all existing images in the database.
Save your page and upload it to your server, and you are done! Go to your website and test it - you should be able to list records!
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
Comments
Set FTP permissions using ASP?
How to set (FTP) permissions on certain folders using ASP?
I have no problems doing this in PHP.
How to do it in ASP?
(CHMOD 0777 then CHMOD 0755 after your'e done with the uplaod?)
Cheers
You must me logged in to write a comment.