Solved

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

Posted on 2006-11-24
3
212 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 250 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

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

735 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