Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link to another page from gridview template image url databinding.

Status
Not open for further replies.

jjjax64

IS-IT--Management
Apr 27, 2010
39
US
We have an .aspx page that has a datagrid which bring back some sql data and one of the columns in the datagrid is an image and is bound to a template which has a databinding of an image url which has a custom binding as follow to display corect image "Eval("Image", "\\app1\images\items_tn\tn_{0}")". This works fine and binds the correct image to the correct row. The image is a thumbnail so we'd like to have that image open up larger image when they click on it. I tried using various variations of above in the postbackurl to test but no good because doesn't know what {0}. Is this the best way to do this or is there another way I can just open a webpage and pass with a parameter such as image.aspx?id1=(0) or something in postbackurl? Thanks, Joe
 
research http handlers (ashx) and loading an image from a database. it's not exactly what you are doing, but it may give you some ideas on how to solve the problem.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top