knockout.js: Your observable isn’t seeing changes made to text controls until they lose focus
Knockout.js logo

knockout is great library that’s easy to use. One thing I noticed is that changes made in text-controls are only propagated to the observable once that control loses focus. If you want changes in a text-control to immediately be reflected in your observable, then avoid the value binding and use the textInput binding like below:

Read more
Entity Framework and the error: Cannot attach the file ‘xxx.mdf’ as database ‘xxx’

Say you’re working on a project that’s using Entity Framework to manage the database storage in a SQL Server Express installation. If you delete the .mdf file you’ll keep on getting the error” Cannot attach the file ‘xxx.mdf’ as database ‘xxx’. To solve it, in visual studio go to the Package Manager console and run […]

Read more