Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

vb script to display logon home page only when it has been updated

Posted on 2006-11-24
3
Medium Priority
?
216 Views
Last Modified: 2010-04-16
Hi,
We have a request from HR to display a web pag at logon, but, only if the page has been updated since the user last viewed it. Any ideas?
0
Comment
Question by:andiharper
1 Comment
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 1000 total points
ID: 18013285
andiharper,

Do you have the last login date in a database?  If so, then do you need the script to find the date the page was last modified and compare the two or how will you get the last modified date?  If the script needs to do it then you can use the File System Object.  For example ...

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.GetFile("c:\path\to\filename.txt")
If DateDiff("d", DateFromDB, objFile.DateLastModified) > 0 then
  ' display the page
End if

That is just an example of what you can use.  Let me know if you have any questions or need more information.

b0lsc0tt
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Introduction to Processes

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question