I developed a textbox control which shows rounded off data on blur
and actual data on focus
. currently this is being done using JS and value change has no relation with ASP.NET model.
Is it possible to add two properties to model and bind them to these events? ie, If I have A & B, on blur
A should be bound and on focus
B should be bound. And each time when user modifies B, the changed value should be reflected in A (after rounding off).
I checked many websites, but I couldn't understand any of it. Few of them are,