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 February 23rd, 2007, 09:34 AM
Authorized User
 
Join Date: Jan 2007
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default cms: Last modified....

Hi,

Added a "Last Modified #####" tag to each content item in the content list. Just realised that the modified date isnt actually updating when making changes.

Just a quick question really, can I achieve the updating of the date in the SQL Stored Proc or do I need to do this in my code i.e =now()

Think I can fiugre the rest out.

Thanks,

 
Old February 23rd, 2007, 10:48 AM
Authorized User
 
Join Date: Jan 2007
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar,

Ignore me :o) - just had to engage my brain

Just changed the InsertUpdateSingleItem stored proc to:

  UPDATE [Content]
  SET Title = @title, IntroText = @introText, BodyText = @bodyText, ContentTypeId = @contentTypeId, CategoryId = @categoryId, Visible = @visible,
                        UpdateDateTime = { fn NOW() }
  WHERE (Id = @id)

which works fine.

Thanks

 
Old February 24th, 2007, 06:01 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Thanks for the update. Glad you got it working with { fn NOW() }. Didn't know that existed; I always use GetDate() or Current_Timestamp instead.

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting record modified info kopyguy ASP.NET 2.0 Basics 0 September 27th, 2007 05:54 AM
Retrieve modified SP marclena SQL Server 2000 1 August 18th, 2005 01:45 PM
last modified date on folders holdmykidney J2EE 0 May 23rd, 2005 07:47 AM
the crystal report can not be modified again ligi Crystal Reports 3 October 9th, 2004 11:39 PM
LoadDataRow causes DataRowState.Modified immediate rsnell ADO.NET 0 September 26th, 2004 11:24 AM





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