有谁知道如何禁用基于日期的链接。例如,到8月30日,用户将无法再访问page..Need帮助。谢谢。
发布于 2009-08-21 18:20:51
非常非常基本的代码,你可以这样做
您需要将2009、08、30更改为到期日期的年、月、日
Dim theDate : theDate = Now()
Dim Result : Result = false
if Year(theDate) <= 2009 then
if Month(theDate) <= 08 then
if Day(theDate) <= 30 then
Result = true
end if
end if
end if
if Result then
'Date is still valid do your code
else
'Date is NOT valid do your code
end if发布于 2009-08-21 18:35:30
请看一些ASP教程,
http://www.w3schools.com/asp/asp_variables.asp
https://stackoverflow.com/questions/1310546
复制相似问题