<% strParamProperty = Request.QueryString("prop") intPressNum = Request.QueryString("pid") %> <% nextPressNum = intPressNum + 1 prevPressNum = intPressNum - 1 if strParamProperty <> "" then strLink = "press_detail.asp?prop=" & strParamProperty & "&pid=" else strLink = "press_detail.asp?pid=" end if if intPressNum = intTotalPressNum then strNext = "" else strNext = strLink & nextPressNum end if if intPressNum = 1 then strPrev = "" else strPrev = strLink & prevPressNum end if %>
<%=strCaption%>
<%=strDateCaption%>


<% strContent = "" if strHtml <> "" then Set fs=Server.CreateObject("Scripting.FileSystemObject") Set f=fs.OpenTextFile(Server.MapPath(strHtml), 1) do while f.AtEndOfStream = false strContent = strContent & f.ReadLine loop f.Close Set f=Nothing Set fs=Nothing end if %> <%=strContent%>