I'm updating a LINQ object prior to SubmitChanges. The values of the object's properties are being taken from a series of TextBoxes.
When I read in one specific TextBox, another TextBox changes its value with no apparent cause.
//...
loc.Lattitude = txtLocLat.Text; // txtLocLong.Text changes to previous value
loc.Longitude = txtLocLong.Text; // Which is now the previous value
dc.SubmitChanges();
// ...
As a result, loc.Longitude never gets updated with the user input. Why would it do this?
- The TextBoxes have no databindings
- The TextBoxes have no events defined
- Breakpointing into the first line merely steps through the DataContext's loc.Lattitude setter.