How to display image and hyperlink in a DataList control?
Posted on 2006-04-11
Hello - I've got to work up a page in ASP.NET 2.0 that displays logo images (about a dozen; 3 columns by 4 rows) with corresponding hyperlinks to the company websites
I've got these image file names and company website links in a user-maintained table (in a MS Access database), and I've set up a DataList control (with RepeatColumns="3") that pulls those two fields
I don't see a particular control that displays an image with a hyperlink; is there one?
If there isn't one, then how do you set the "NavigateUrl" property of the HyperLink control from a field in the data source? "NavigateUrl="<%# Eval("CompanyURL") %>" doesn't work like I thought.