---
title: "how to use data binder inside anchor tags"  
description: "how to use data binder inside anchor tags"  
author: "Anonymous User"  
published: 2013-03-12  
updated: 2013-03-12  
canonical: https://www.mindstick.com/forum/652/how-to-use-data-binder-inside-anchor-tags  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# how to use data binder inside anchor tags

Hi Mindstickians!

I have [anchor tag](https://www.mindstick.com/forum/156201/what-is-the-use-of-anchor-tag-in-seo) in asp.net [repeater](https://www.mindstick.com/blog/197/asp-dot-net-repeater-control) I want to be to embed data binder to add to href to create light-box

error [Compilation Error](https://www.mindstick.com/forum/159699/what-is-a-compilation-error-in-dot-net-core-explain-with-an-example)

Description: An error occurred during the compilation of a [resource](https://www.mindstick.com/blog/43433/top-best-resources-for-women-about-beauty-and-health) [required](https://www.mindstick.com/forum/160269/what-is-required-data-annotation-how-does-it-affect-model-validation) to service this request. Please review the following [specific error](https://www.mindstick.com/forum/160112/how-to-create-custom-exceptions-in-dot-net-core-for-more-specific-error-handling-scenarios) details and

modify your [source code](https://www.mindstick.com/forum/33476/pls-send-me-source-code-for-changing-passward-in-asp-dot-net-i-tried-so-much-from-google-but-its-not-workining) appropriately.

[Compiler](https://www.mindstick.com/articles/27/just-in-time-compiler) [Error Message](https://www.mindstick.com/forum/23174/error-message-the-page-you-are-requesting-cannot-be-served-because-of-the-extension-configuration): 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!

## Replies

### Reply by AVADHESH PATEL

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


---

Original Source: https://www.mindstick.com/forum/652/how-to-use-data-binder-inside-anchor-tags

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
