带有sql数据库的Asp.net图片库 [英] Image gallery in Asp.net with sql database

查看:71
本文介绍了带有sql数据库的Asp.net图片库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii Gd Mrng !! !!

我正在使用数据库在asp.net中创建一个图像库(使用visual studio-2010)。

即即时创建一家摄影工作室。

工作室的所有者使用数据库插入/上传图像,然后图像应显示在页面上。

这种类型的所有者也可以在他想要的时候删除图库中的图像。

任何人都可以帮助我..给我最好的方法或方法来准备这个。

Thnxx

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

推荐答案

请参阅以下链接:

http:/ /www.aspdotnet-suresh.com/2011/12/jquery-lightbox-image-slideshow-gallary.html [ ^ ]

http://aspsnippets.com/Articles/Ima ge-Gallery-in-ASPNet-with-enlarge-image-preview-using-C-and-VBNet.aspx [ ^ ]



这可能对您的要求有所帮助。
Refer below links:
http://www.aspdotnet-suresh.com/2011/12/jquery-lightbox-image-slideshow-gallary.html[^]
http://aspsnippets.com/Articles/Image-Gallery-in-ASPNet-with-enlarge-image-preview-using-C-and-VBNet.aspx[^]

This may help in your requirement.


您可以选择其中一个数据列表控件,如Gridview,转发器等,并使用ItemTemplate字段中的Image Control来显示图像。另外,决定如何保存文件。可以选择将图像文件保存在文件夹中并将路径保存在Db中或将其作为图像本身保存在DB中。

添加一些可以帮助你入门的参考资料。



http://www.aspsnippets.com/articles/display-images-from-sql-server-database-in-asp.net-gridview-control.aspx [<一个href =http://www.aspsnippets.com/articles/display-images-from-sql-server-database-in-asp.net-gridview-control.aspx\"target =_ blanktitle =新窗口 > ^ ]



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 [<啊ref =http://www.aspdotnet-suresh.com/2013/04/display-images-in-aspnet-gridview-from.htmltarget =_ blanktitle =New Window> ^ ]



希望这有帮助......
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...


你应该使用 jQuery 。这将是轻松和敏感的。



参考

1. 使用ASP.NET和& ;;的Jquery图片库数据库 [ ^ ]

2. JQuery Photo Gallery [ ^ ]

3. 如何在ASP.NET中使用JQueryLightBox [ ^ ]



对于图像删除界面,您必须检查用户的角色,谁登录到应用程序。根据角色(如果是所有者),您将显示图像的一些删除选项。我不知道数据库当前的结构,你应该根据你的数据库结构实现角色功能。
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.


这篇关于带有sql数据库的Asp.net图片库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆