Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 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 March 29th, 2008, 07:21 AM
Authorized User
 
Join Date: Mar 2008
Posts: 62
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via Yahoo to kalel_4444
Default

Well, all is finally working with this provider now..!

After further reviewing, I noticed that the Birthdate property was set correctly in the web.config, but in SQL it was nvarchar, changing it to datetime fixed the exception.

As for the Newsletter, I changed from nvarchar to an int and this also took care of the 2nd problem.

Thanks for the support!

 
Old March 29th, 2008, 07:43 AM
Authorized User
 
Join Date: Mar 2008
Posts: 62
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via Yahoo to kalel_4444
Default

I just wanted to add..

The whole Newsletter exception bothered me, I couldn't understand why it needed to be an int when after parsing the ProfileProvider "text blob" it inserted <SubscriptionType>None</SubscriptionType>, a String!. It didn't insert the enum of 0,1,2.

But I realized, that the enum.cs outputs an integer. Since the type in web.config is type="MB.TheBeerHouse.BLL.Newsletters.Subscription Type" it's bypassing the code that converts it to a string. Therefore remaining an int datatype.

I thought this comment may prove helpful if creating new classes to add to this SqlTableProfileProvider.

I hope all my mistakes will help others in this topic...

Take Care!






Similar Threads
Thread Thread Starter Forum Replies Last Post
i want to modify the shopping ssomchai BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 April 3rd, 2008 01:52 AM
Help Modify GetThreadsRss kherrerab BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 January 22nd, 2008 12:14 PM
Modify XSLT mikeymikey XSLT 4 January 5th, 2008 11:21 PM
How to modify "for-each" to "last occurrence of" ? nyctechwriter XSLT 3 October 30th, 2006 01:15 PM
How to modify hidden value? Edward King Javascript 2 January 21st, 2006 05:44 AM





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