␡
- Streaming the Images
- Displaying Thumbnails
- Displaying Larger Versions of the Images
- Ready To Go?
Like this article? We recommend
Displaying Larger Versions of the Images
Listing 3 shows the script that displays a larger version of the thumbnail image when clicked.
Listing 3 C# script for displaying a larger version of the thumbnail
<%@ Page Inherits="ImageResizing.MainDisplay" SRC="imagegen.aspx.cs"%> 1 <html> 2 <head> 3 <title>I'm a large version of the thumbnail</title> 4 </head> 5 <body bgcolor="#ffffff" marginheight=0 marginwidth=0 topmargin=0 leftmargin=0> 6 <% id = cint(request.querystring("img")) %> 7 <img src="imagegen.aspx?ImgID=<%=id%>&height=400&width=268"> 8 </body> 9 </html>
The principle here is identical to that in Listing 2 for displaying thumbnails. The only differences are that this script is called into a Java pop-up window, the size parameters for width and height are larger, and we pass the image ID to the code-behind script as a variable instead of statically.