2-way-object-databinding

Two-way databinding of a custom templated asp.net control

This question was originally about getting two-way binding to work at all, but due to lack of specific answers and otherwise progress along the way, I've been updating it - You can check the edit history, but I figured this is better for clarity. The code listing below allows a single object to be two-way databound to a templated contro...

Add entity from child window causes Entity cannot be attached error....why?

I've got an order details form in Silverlight that has a listbox of order payments. The order payments are bound to their own domain datasource outside of the surrounding order. I have a button that pops up a ChildWindow control to add new order payments. An order payment has an amount and a payment method associated with it. The f...

.Net ObjectDataSource error: Object does not match target type.

I have an ObjectDataSource on a page that is producing the error "Object does not match target type" when its Insert method is invoked. From Googling this message, I believe this the message is deceptive and I'm actually getting a null reference error on the object that the ObjectDataSource is trying to invoke the method on, but I'm darn...

Android populate and set values from UI to object and Viceversa

I am writing a commercial Android app to take survey, which should also give option to edit survey. What is the best approach to link UI fields to database without writing explicit logic to do that. ...

c# binding to fields on a nested object

I can't seem to find a simple, concrete explanation of how to bind controls in a WinForms app to nested objects using data binding. For example: class MyObject : INotifyPropertyChanged { private string _Name; public string Name { get { return _Name; } set { _Name = value; OnPropertyChanged("Name"); } } private MyInner _Inn...