ASP.NET simple custom control with two way binding
问题 I have custom control with two textboxes and one drop down list. I want to make it two-way data bound, so when I put it into ie. Details View control like this: <asp:MyCustomControl ID="MyId" runat="server" Value1='<%# Bind("val1") %>'> </asp:MyCustomControl> then it should work like regular TextBox.. In my control I have Value1 defined: [ Bindable(true, BindingDirection.TwoWay), Browsable(true), DefaultValue(0), PersistenceMode(PersistenceMode.Attribute) ] public double Value1 { get { if