Bring up a project which contains the basic HTML. The first thing that you need to do here is to insert a button. To do this, go to Toolbox
and drag and drop a Button
control below the line beginning with <form id=...
. Remember, the simple interface that we will build in this project will involve clicking on a button and reading files into a list box from your hard drive. Change the text on the Button
control to say Scan Folder
. You will scan a folder for images in this project.
After that, you'll insert a ListBox
control. So again, go to Toolbox
, type in list
in the search field, and drag and drop the ListBox
control below the previous line. You will fill the ListBox
control after you click on the button.
In the last stage, you will save all of the files to SQL Server. This is our objective. For this, drag in one more button below the preceding line. Change the text on the Button
control to say Save To SQL Server
.
Delete the two lines that begin with...