---
title: "Databinding problem"  
description: "Databinding problem"  
author: "Royce Roy"  
published: 2014-08-27  
updated: 2014-08-27  
canonical: https://www.mindstick.com/forum/2175/databinding-problem  
category: "asp.net"  
tags: ["asp.net", "Data binding", "c#", ".net", "Databinding Issues", "Databinding problem"]  
reading_time: 1 minute  

---

# Databinding problem

Is it possible to do [data binding](https://www.mindstick.com/articles/337466/exploring-data-binding-in-mvc-how-it-connects-model-and-view) on the [fields](https://www.mindstick.com/forum/159126/sql-query-for-all-tables-and-fields-in-an-oracle-db) of an object just like in [WPF](https://www.mindstick.com/forum/304/wpf)?

Something like this:

<TextBlock [Text](https://www.mindstick.com/blog/301635/did-people-reinvent-texting-to-express-the-full-range-of-emotions)="{Binding ElementName=lbColor}" />

just for an [asp](https://www.mindstick.com/articles/751/introduction-to-asp-dot-net-mvc):[TextBox](https://www.mindstick.com/forum/12714/dynamic-textbox-in-gridview) element. What I want is that on submit to have the new [values](https://www.mindstick.com/forum/327/sum-textbox-values) inside the binded object and I don't want to manually read and set the values.

## Replies

### Reply by Sumit Kesarwani

Hi Royce, \

if you are [binding](https://www.mindstick.com/blog/146/dynamic-binding-in-c-sharp) in a template you can use:

<asp:textbox Text="<%#Bind("lbColor")%>" runat="server" />


---

Original Source: https://www.mindstick.com/forum/2175/databinding-problem

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
