Author: Tales from the Evil Empire : ASP.NET | Posted on: 10/17/2008 10:35:33 PM | Views : 778

In a recent post , I showed how the binding component can be instantiated independently of the {binding} markup extension. But there?s a whole lot more it can do. For instance, it has two very interesting callback properties, convert and convertBack that get called any time the binding sees a change respectively on the source or on the target of the binding. The original purpose of those functions is to handle the back and forth conversion of data. For example, if you?re binding an input tag?s value property to a column of type Date, you?ll want to set convert to a function that formats the date according to the current culture, and convertBack to a function that parses it back from string form to date form. But this couple of functions can...(read more) ...

Go to the complete details ...