My application based on book examples in C#.
Hello,
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.
|