D
Dan
I have a financial application.
When I populate text boxes with financial numbers I don't group the digits via a comma.
For example. I'll use 500000 instead of 500,000.
Obviously the latter is easier to read by our accounting guys.
The problem is when saving 500,000. It will save 500 because I save the Val(txtTextBox.Text) value. Val cuts off the number at the first non numeric character.
Is there anyway to change the .Text functionality in some of my text boxes without having to create my own user control or web control. I'd just like to override the way it handles retrieving numeric data (with $ and commas) from a text box. Basically if the text value is $500,000, I'd like the text property to return 500000
Anyone have any ideas?
I am using ASP.NET Framework 1.1.
Perhaps I could override the text property in all my textboxes easily?
???
When I populate text boxes with financial numbers I don't group the digits via a comma.
For example. I'll use 500000 instead of 500,000.
Obviously the latter is easier to read by our accounting guys.
The problem is when saving 500,000. It will save 500 because I save the Val(txtTextBox.Text) value. Val cuts off the number at the first non numeric character.
Is there anyway to change the .Text functionality in some of my text boxes without having to create my own user control or web control. I'd just like to override the way it handles retrieving numeric data (with $ and commas) from a text box. Basically if the text value is $500,000, I'd like the text property to return 500000
Anyone have any ideas?
I am using ASP.NET Framework 1.1.
Perhaps I could override the text property in all my textboxes easily?
???