B
Beemer Biker
I have a 10 row (per page) gridview where the first column is a small image
under 100x200px and the second column is a DropDownList template that
selects which image to show in the first column. This works, but I noticed
that when I click the DDL and select another image, all the images on the
page get refreshed. There are as few as 3 images and not more than 7 per
row. Worst case would be 7x10 = 70 small images that need to be loaded.
Ideally they should be loaded only once when the page is first displayed.
I was wondering how I can speed this up so that there is no need to post
back to the server to get the image. The images are not static, they are
calculated, but during page load (or data bind) I know how many images there
are at max and how to calculate them. I was wondering if I could store them
somewhere on the page but only display the image that corresponds to the
index of the DDL in the second column. I do not know how to do that.
Scrolling the first column would also work, but how do I concatenate 3 to 7
images together? Currently, if the user clicks on the small image I launch
the full size image into a new window or IE7 tab. I would still need that
functionality.
Alternately, a real DDL image combo box would be nice, but I didnt see how
to put one together in the first place so I came up with my current scheme
of using two columns.
...TIA..
--
=======================================================================
Beemer Biker joestateson at grandecom dot net
http://TipsForTheComputingImpaired.com
http://ResearchRiders.org Ask about my 99'R1100RT
=======================================================================
under 100x200px and the second column is a DropDownList template that
selects which image to show in the first column. This works, but I noticed
that when I click the DDL and select another image, all the images on the
page get refreshed. There are as few as 3 images and not more than 7 per
row. Worst case would be 7x10 = 70 small images that need to be loaded.
Ideally they should be loaded only once when the page is first displayed.
I was wondering how I can speed this up so that there is no need to post
back to the server to get the image. The images are not static, they are
calculated, but during page load (or data bind) I know how many images there
are at max and how to calculate them. I was wondering if I could store them
somewhere on the page but only display the image that corresponds to the
index of the DDL in the second column. I do not know how to do that.
Scrolling the first column would also work, but how do I concatenate 3 to 7
images together? Currently, if the user clicks on the small image I launch
the full size image into a new window or IE7 tab. I would still need that
functionality.
Alternately, a real DDL image combo box would be nice, but I didnt see how
to put one together in the first place so I came up with my current scheme
of using two columns.
...TIA..
--
=======================================================================
Beemer Biker joestateson at grandecom dot net
http://TipsForTheComputingImpaired.com
http://ResearchRiders.org Ask about my 99'R1100RT
=======================================================================