Print Page | Close Window

Show image if first record???

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=16909
Printed Date: 29 March 2026 at 7:01pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Show image if first record???
Posted By: sccs
Subject: Show image if first record???
Date Posted: 14 October 2005 at 7:49am
I have an ASP news database and want to be able to show a graphic saying NEW next to the new news items in a repeating region. I have tried a show if statement but it shows the icon on all news items. Please help.
Thanks



Replies:
Posted By: ub3rl337ch3ch
Date Posted: 31 October 2005 at 6:11pm
You need to decide what 'new' actually is. If it's  based on date, then use an if statement to check whether the date of the news is within (for example) the last 3 days (use dateadd() with a neg. value to sub from now())



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net