xfungalx
asked on
Using ImageButtons in a Datalist as thumbnails, how do I get the url of the image to pass to an open window function?
Hello, I am using a Datalist to display images from a database. I am using ImageButton's to do this. What I want is when the dynamically created images are displayed the user can click them to open a window with the full size version of the pic. Does this make sense?
I really want to handle this from the code-behind because i like it that way, but whatever works. Can someone please provide some sample code to facilitate this? Everything I find on the net so far has been, well hard to understand. I thought this would be a simple thing when I started... actually I hope it still is.
Sorry if I am not asking well, but that is how lost I am at this point!
I really want to handle this from the code-behind because i like it that way, but whatever works. Can someone please provide some sample code to facilitate this? Everything I find on the net so far has been, well hard to understand. I thought this would be a simple thing when I started... actually I hope it still is.
Sorry if I am not asking well, but that is how lost I am at this point!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for that code, I am sure it works, and I will use it if necessary. But I still thought there would be an easier way. I suppose this code will resize the pics to thumbnail size to save bandwidth on page load however I was hoping for an alternative using my datalist. Is there an easier way? Like I said, I will try this sample code tonight and ultimately use it if necessary, so thank you for this.
I had given you three sample pages go thru the aspx page and codebehind