Click here to Skip to main content
14,603,943 members
Rate this:
Please Sign up or sign in to vote.
See more:
HI ,

I WANT TO SHOW IMAGES PRESENT IN DATABASE GRID VIEW CONTROL IN THUMBNAIL FORMAT,
AND WHEN I CLICK ON THAT THUMBNAIL IMAGE I WANT TO SHOW FULL IMAGE IN A NEW WINDOW.
HOW TO DO THIS.
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 1

Have two sets of the images: of original full size and resampled down to a thumbnail size. Keep them on your server side as files. Create a function which finds a file name in one set by a file name in another set. One simplest way to implement it would be using special naming schema: say, "MyFile.png" (full size) could have its thumbnail counterpart names, say ""MyFile.thumbnail.png", so the function will be just adding or removing ".thumbnail" suffix. On click, locate the thumbnail file name, calculate the full-size file name out of it, show it the way you want.

This is one of the simplest ways. You can design something more sophisticated, especially if you expect your work to grow in features or need extra flexibility by whatever reason.

Any further questions? How to show? Anything else?

—SA
   
v2
Rate this:
Please Sign up or sign in to vote.

Solution 2

<code><code><>&<a href=""></a>pre lang="c++">
<pre lang="c++"><pre lang="c++">
strike>
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100