i want to u if sentences??

if the time is equal to 1, the hyperlink will be displayed. how can i do that??

because i wrote some code, but it didn;t work. can any one help me about this??

if time="1" then
response.write "<a ref="contract_us.html">asd</a>"
end if

You will need to use the datePart function. Example:

<%
dim inthr
inthr = datepart("h",time)
if inthr = 1 then
   	response.write "<a ref="contract_us.html">asd</a>"
end if
%>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.