Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
any one have suggestion about how to upload image from one page and show in another page in grid view plus the same uploaded image have some other property when we click on it it will show these features.
Posted
Comments
Swayam231 25-May-13 1:15am    
what features???
Swayam231 25-May-13 1:19am    
well for displaying images in multiple pages you can use generic handler to control the images.. But please elaborate your question above~!
bh@r@t 25-May-13 4:16am    
i want to display the image in some other page except the page from which i am uploading the image
Swayam231 25-May-13 4:24am    
okk. are u using db to store the image or not??? U want to save image into the db and then retrieve it????
Swayam231 25-May-13 4:29am    
here's a gud example. Visit the link. If it works let me know:
http://www.codeproject.com/Articles/268123/Display-Store-and-Retrieve-Image-Data-from-Databas

1 solution

Below is my view to do this

On Upload Image Page
->Use FileUpload control for uploading image file
->Save file using SavesAs method of FileUpload control
->Insert FilePath (where you have saved file) and other information about uploaded image into database table

On GridView Page
->Retrieve information from database table where you inserted data and bind with GridView Control
->Use template column with Image tag in GridView to display image. Assign image path in src attribute of img tag (but is should virtual path(like http://localhost/abc.png) not physical path (like C:/abc.png).
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900