Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 July 15th, 2011, 11:22 AM
Authorized User
 
Join Date: Jan 2011
Posts: 89
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Once again Imar I am greatful for your help, I added in markup:

<asp:Parameter Name="DateOfBirth" Type="DateTime" />

Then in the RegisterUser.CreatedUser event I used:

DataSource.InsertParameters.Item("DateOfBirth").De faultValue = DoB

Thank you.
 
Old July 15th, 2011, 11:54 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yes, great solution. This way, .NET handles the date time conversion for you.

Did you figure out the stuff with the ListItem?

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old July 15th, 2011, 01:09 PM
Authorized User
 
Join Date: Jan 2011
Posts: 89
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Yes I used the list item code setting the text and value as shown and was able to remove the select case statement / counter variable and able to grab the month number directly from the control, thanks!





Similar Threads
Thread Thread Starter Forum Replies Last Post
feeding tree control according to xml structure kirat Flex 1 April 24th, 2009 12:49 PM
How To: Use hosted mySQL DB instead of local SQL express DB? allan_ravn BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 April 14th, 2009 03:09 PM
DateTime Control for WebForms avats ASP.NET 1.0 and 1.1 Professional 2 July 13th, 2007 10:25 PM
sql datetime type angelboy C# 2005 0 April 16th, 2007 03:02 PM
DateTime control which takes upto milliseconds lmadhavi Visual C++ 1 September 17th, 2004 07:57 PM





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