My application based on book examples in C#.
i read „Instant Results” and i loved this great book, especially 3-layer architecture concept which was new to me.
Of course i started to adapt some ideas to my own web applications. Now i stuck in dead end and have no more ideas what to do next and i don’t have anybody to ask for help…
This is how it looks:
•Simple test application based one sql table.
•BLL classes: class „Transaction” with private fields and properties and class „TransactionManager” with two methods (select and update).
•DAL: class „TransactionManagerDB” responsible for data access (simple select based on datareader returning an „TransactionObject” and simple SqlCommand updating this object.
•For presentation of data i use DetailsView and a ObjectDataSource wiht those two methods from TransactionManager class.
Now, everything looks good and works fine until i try to update the grid. There are some fields in decimal format (prices). My culture is pl-Pl (Poland) so comma is for me a decimal separator. For example 11,11 is a correct price. When i click update button i have an FormatExeption saying, that 11,11 is not correct decimal format. When i change culture for en-US and my grid displays 11.11 and i click update - everything works fine…
I have never had this problem before. I was succesfully using typed datasets or SqlDatasources.
I hope i can find here a solution for my problem.