Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Set the NavigateUrl of a ImageMap in Repeater

Set the NavigateUrl of a ImageMap in Repeater

Scheduled Pinned Locked Moved ASP.NET
sysadmindockerhelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Farhad Eft
    wrote on last edited by
    #1

    Hi, I'd like to know how to set the NavigateUrl of a ImageMap in Repeater This code returns an error. Thank you.

    <asp:Repeater ID="RepeaterOthers" runat="server">
    <ItemTemplate>
    <asp:ImageMap ID="ImageOthersBack" Height="145px" Width="200px" HotSpotMode="Navigate" runat="server" ImageUrl='<%# String.Format("~/images/{0}.png", Container.DataItem) %>'>
    <asp:RectangleHotSpot Top="96" Bottom="128" Left="28" Right="175" NavigateUrl='<%# String.Format("~/Link.aspx?Id={0}", Container.DataItem) %>' />
    </asp:ImageMap>
    </ItemTemplate>
    </asp:Repeater>

    P 1 Reply Last reply
    0
    • F Farhad Eft

      Hi, I'd like to know how to set the NavigateUrl of a ImageMap in Repeater This code returns an error. Thank you.

      <asp:Repeater ID="RepeaterOthers" runat="server">
      <ItemTemplate>
      <asp:ImageMap ID="ImageOthersBack" Height="145px" Width="200px" HotSpotMode="Navigate" runat="server" ImageUrl='<%# String.Format("~/images/{0}.png", Container.DataItem) %>'>
      <asp:RectangleHotSpot Top="96" Bottom="128" Left="28" Right="175" NavigateUrl='<%# String.Format("~/Link.aspx?Id={0}", Container.DataItem) %>' />
      </asp:ImageMap>
      </ItemTemplate>
      </asp:Repeater>

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      Then post here error message too? because other person don't know how your are binding in code and with which column? so post full error message.

      Parwej Ahamad

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups