I'm writing an ASP.Net application which needs to display a large number of thumbnails, preferably in a paginated format. These thumbnails will开发者_Go百科 be stored on the server's hard disk, but will have their filenames listed in a SQL Server database. What I want to do is to be able to filter the images being displayed based on criteria within the database.
I've looked at the NotesForGallery control, which I really like, but it doesn't seem to have a way to do that. --if I'm wrong, please correct me.
Are there any other image gallery type controls, preferably free, that can do what I need? I'm hoping someone can recommend a control or solution that will point me in the right direction.
Thanks in advance.
Like K2so was saying, have you looked at just databinding to a simple repeater or datagrid? Since your image names and other properties are in the database, you could run your query and spit back out a list of images.
Example (rough code, sorry)
<asp:repeater id="yourImages" runat="server">
<itemTemplate>
<img src='~/Images/Files/<% Bind("ImageFileName")%>' />
</ItemTemplate>
</asp:repeater>
Using a paginated grid view would be very similar as well.
EDIT: I tried to post this as a comment, but the link wouldn't work very well. Here is a demo of asp.net listView with images in a grid and paged. Matt Berseth Demo Site
精彩评论