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 April 21st, 2010, 01:54 AM
Registered User
 
Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Blog DatePublished question

Hi There,

I am little confused about the DatePublised attribute of BlogEntry. When we edit an exist blog entry which DateTime should we save to the database? In the project, looks like we save the date of first time (date from calendar) we created blog plus the hour and minute of the last edit time (Now.hour, Now.minute).

Can I just use DateTime.Now as the DatePublised when I edit an exist blog entry? Or add a list of DateEdited to BlogEntry.

Leon
 
Old April 23rd, 2010, 12:35 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,

I am not sure I understand what you're asking. Can you elaborate?

Quote:
Can I just use DateTime.Now as the DatePublised when I edit
Sure, but that puts the entry live immediately, and doesn't allow you to publish in the future.

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
Blog - SQL Procedure Question norman001 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 1 March 16th, 2009 06:47 AM
Wrox-Blog: Update Panel Question norman001 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 March 2nd, 2009 09:15 PM
Wrox Blog editor image question norman001 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 February 23rd, 2009 03:40 AM
Wrox Blog Question - LinkButton norman001 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 14 February 7th, 2009 03:03 PM
Wrox Blog: Viewing individual blog entries Tawanda BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 7 May 7th, 2007 12:06 PM





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