Solved

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

Posted on 2006-11-24
3
214 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

Technology Partners: 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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
A short article about problems I had with the new location API and permissions in Marshmallow
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 …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

630 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