Click to See Complete Forum and Search --> : Datagrid Image Control


JoeyD
12-13-2005, 07:11 AM
I have an Image control in a datagrid that displays random products from my database. What I want to do is wrap it in a link so that the user can click on each part and get the name, details, pricing, and option to buy the product. Can anyone tell me how to do this in a datagrid. I am new to asp.net and the whole databinding technic. Any help is greatlt appreciated.

JoeyD

takkie
12-13-2005, 02:41 PM
use a imageButton control instead of a regular image control.

or use a hyperlink control, and put a image on it instead of text...

ib has click events

hyperlink can have navigateURL properties..

or, just use a button column in the dg.

-tak

JoeyD
12-14-2005, 07:22 AM
Thanks takkie I wound up adding a select button next to the picture. This then display another gridview with the price, name and what bike it fits on. From there they can purchase it or view related items.