Skip Navigation LinksHome > Categories > Code from a Category

Upload Images using FileUpload Control



User Name: codelecturer
Name: Mike Chauhan
Contact Me: www.datawebcoder.com/ContactUs.aspx
Home Page: www.datawebcoder.com
6 years of total IT experience including programming, application development, System Maintenance . 3 years of Experienced and expertise in .Net Framework VB, Visual Basic.Net, ASP.Net 2.0, 3.5 and AD... [More]
Viewed Times: 3066
Add Date: 11/07/2011
Here, i am Uploading Images using FileUpload Control and saving or storing them in SQL Server database in ASP.NET with VB.NET.
Database is having a table named Images with three columns.
1. ID Numeric Primary key with Identity Increment.
2. ImageName Varchar to store Name of Image.
3. Image Image to store image in binary format.

After uploading and saving images in database, images are displayed in GridView.


Here is the code for displaying the uploaded images into GridView

Write this code in Click Event of Upload Button

Hope you enjoyed.

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Details**:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
 
    
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.