Click here to Skip to main content
15,906,645 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii Gd Mrng..!!
I m creating a image gallery in asp.net(using visual studio-2010)using database.
i.e. i m creating for a photo studio shop.
owner of studio insert/upload a image using database then image should display on page.
this type owner can also delete images from gallery when he want.
can anyone help me..tell me best way or approach to prepaire this.
Thnxx
Posted

 
Share this answer
 
v2
Comments
Prasaad SJ 12-Jan-14 23:26pm    
The above would give you the best answer and to view the images in side by side instead of a row by row you can see the following link

http://forums.asp.net/t/1843167.aspx
Anurag Sinha V 12-Jan-14 23:41pm    
+5 for the links Gitanjali..
Gitanjali Singh 12-Jan-14 23:48pm    
Thanks Prasaad and Anurag.
You can choose one of the Data listing controls Such as Gridview , repeater etc. and use the Image Control inside ItemTemplate field to display images.Also , decide how to save the file. Can choose to save image file in folder and save the path in Db or to save it as image itself in DB.
Adding some reference which gets you started.

http://www.aspsnippets.com/articles/display-images-from-sql-server-database-in-asp.net-gridview-control.aspx[^]

http://www.aspsnippets.com/Articles/Display-Images-from-SQL-Server-Database-using-ASP.Net.aspx[^]

http://www.aspdotnet-suresh.com/2013/04/display-images-in-aspnet-gridview-from.html[^]

Hope this helps...
 
Share this answer
 
You should use jQuery for this. That will be light and responsive.

Refer
1. Jquery Picture gallery with ASP.NET & Database[^]
2. JQuery Photo Gallery[^]
3. How to use JQueryLightBox in ASP.NET[^]

For the Image Delete Interface, you have to check the Role of the User, who is logging in to the application. According to the Role (if owner), you will show some delete option for the Image. I don't know the current struture of your Database, you should implement the Role functionality according to your Database structure.
 
Share this answer
 

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