how to use data binder inside anchor tags

Total Post:88


 1295  View(s)
Rate this:

Hi Mindstickians!

I have anchor tag in repeater I want to be to embed data binder to add to href to create light-box

error Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and

modify your source code appropriately.

Compiler Error Message: CS1002: ; expected

Source Error:

<a href="editReminders.aspx?reminderID=<% DataBinder.Eval(Container.DataItem, >"ReminderID") %>" shape="rect" > class="extLink">Edite</a>   

I hope you short-out my problem ASAP.
Thanks in advance!

  1. Re: how to use data binder inside anchor tags

    Hi Jacob!

    bind data inside anchor tags as following

    add # character to % to be

     <a href="editReminders.aspx?reminderID=<%# DataBinder.Eval(Container.DataItem, "ReminderID") %>" shape="rect" class="extLink">Edite</a>

    I hope it helpful for you


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.