﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Dynamically two way data binding</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 01:35:55 GMT</lastBuildDate><ttl>20</ttl><item><title>Dynamically two way data binding</title><link>http://forum.strataframe.net/FindPost20008.aspx</link><description>Hi,&lt;br&gt;
I have a page that allow user to specify a field value with two way, combobox or textbox. System would based on the selection at another optiongroup to determine which controls to used for next editing.&lt;br&gt;
&lt;br&gt;
I tried to specify two way binding &lt;%# Bind('MyField') %&gt; for both controls in aspx markup, and hide/unhide them in optiongroup selection changed event. However, ASP.NET always take the last dropped control value to update back to data source.&lt;br&gt;
&lt;br&gt;
Therefore, I decided to set two way binding dynamically at runtime. How could I do so?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Fri, 10 Oct 2008 11:22:20 GMT</pubDate><dc:creator>Chan</dc:creator></item></channel></rss>