Wrox Programmer Forums
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 5th, 2008, 05:45 AM
Registered User
Join Date: May 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

Old May 5th, 2008, 05:51 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

You can set the culture and uiCulture attributes of the globalization element of web.config to a Polish culture: http://msdn.microsoft.com/en-us/library/hy4kkhe0.aspx

Glad you like the book.....

Imar Spaanjaars
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.
Old May 6th, 2008, 02:06 AM
Registered User
Join Date: May 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Thank you for a quick reply but it seems that the problem lies deeper. Looks like it is a bug. I found the solution here:


and it works fine. Now i'll check if there is a fix for that :-)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference in book and examples golf1052 BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 1 June 15th, 2007 04:14 PM
problems with examples in book skicrud Javascript How-To 2 May 27th, 2004 08:52 AM
Problems with the examples from the J2EE book alf.guzman J2EE 0 April 20th, 2004 09:43 AM
Book examples duff? Vormulac ASP.NET 1.0 and 1.1 Basics 2 September 8th, 2003 04:37 AM
Book Examples luisfco Pro VB 6 1 September 5th, 2003 06:50 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.