HOW TO USE DATA BINDER INSIDE ANCHOR TAGS

jacob rasel

Total Post:88

Points:616
Posted by  jacob rasel
C# 
C#
 908  View(s)
Ratings:
Rate this:

Hi Mindstickians!

I have anchor tag in asp.net 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. AVADHESH PATEL

    Post:604

    Points:4228
    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!