Click here to Skip to main content
15,886,791 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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
 
Share this answer
 
v2
<code><code><>&<a href=""></a>pre lang="c++">
C++
<pre lang="c++"><pre lang="c++">
strike>
 
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