Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 5th, 2008, 05:45 AM
Registered User
 
Join Date: May 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.


  #2 (permalink)  
Old May 5th, 2008, 05:51 AM
Imar's Avatar
Wrox Author
Points: 72,022, Level: 100
Points: 72,022, Level: 100 Points: 72,022, Level: 100 Points: 72,022, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,076
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
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.
  #3 (permalink)  
Old May 6th, 2008, 02:06 AM
Registered User
 
Join Date: May 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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:

http://forums.asp.net/p/963913/1201755.aspx#1201755

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



 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:50 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.