Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to dynamically set Imagemao NavigateURL in a datali
Message
From
13/10/2005 06:19:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01058549
Message ID:
01058574
Views:
17
>I have an imagemap in a datalist with one hotspot that covers the entire image. I want the imagemap to show a URL stored in a database field name ImageURL.
>
>I get a "cannot bind" error when trying to use EVAL("ImageMap"), and I can find no other way to dynamically set it in a datalist.
>
>Does anyone know how to do this?
>
>Thanks in advance!

Not sure is this is what you're looking for:
<asp:ImageMap id="myImage"
  ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ImageURLFieldValue") %>'
  runat="server"/>
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform