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 June 28th, 2015, 06:55 AM
Authorized User
 
Join Date: May 2015
Posts: 46
Thanks: 1
Thanked 0 Times in 0 Posts
Default AFTER FINISH from this book

If I want to retrieve data from database in date how can I do that
you can say I have three dropDownList one for day of date ,another for for the month ,last one for the year
how can i do that

after finish of reading this book where can I go to Enhance my skills

thanks
 
Old June 28th, 2015, 02:39 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there

It depends on what you want to do; if you use LINQ and model binding you can simply grab the three values, convert them to an int and then construct a new DateTime passing the year, month and date to the constructor.

For the SqlDataSource control you could handle the Selecting event and pass it the DateTime. More details here:http://forums.asp.net/t/949925.aspx?...SqlDataSource+

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!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Wizard Finish Step Approach AspNetGuy ASP.NET 3.5 Basics 0 June 17th, 2008 05:15 PM
About to finish the book?!! ukamed BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 2 May 22nd, 2008 06:23 PM
Could somebody help me finish this code Brettvan1 VB.NET 2002/2003 Basics 4 October 10th, 2004 12:38 AM
Waiting for a batch file to finish fordrs3 Beginning VB 6 3 June 22nd, 2003 04:24 AM





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