DateLine Monday, 27 April 2009

EMAIL |   PRINT | FEEDBACK

<% on Error Resume Next Response.Expires = 0 ID = Request.QueryString("ID") If ID = "" then Response.redirect "default.asp" End If SUB ReadDisplayFile(FileToRead) whichfile=server.mappath(FileToRead) Set fs = CreateObject("Scripting.FileSystemObject") Set thisfile = fs.OpenTextFile(whichfile, 1, False) tempSTR=thisfile.readall response.write tempSTR thisfile.Close set thisfile=nothing set fs=nothing END SUB whichfile=ID & ".asp" tp=left(whichfile,1) select case tp case "p" Response.Redirect("ppix.asp?tfile="&ID) end select ID = Request.QueryString("ID") %> First Head of State ever to visit Kilinochchi
     
 
 
<% whichfile=ID & ".asp" Call ReadDisplayFile(whichfile) %> <% dim hdp, flnk dbpath="/2009/04/27/p.txt" Set MyFileObject=Server.CreateObject("Scripting.FileSystemObject") Set MyTextFile=MyFileObject.OpenTextFile(Server.MapPath(dbpath)) %> <% Set MyFileObject=Nothing Set MyTextFile=Nothing %>

Related Stories | Home

<% WHILE NOT MyTextFile.AtEndOfStream hdp= MyTextFile.ReadLine flnk= MyTextFile.ReadLine %>
  • <%IF (ID<>flnk) then%>

    <%=hdp%>

    <%ELSE%>

    <%=hdp%>

  • <%END IF%>
<%WEND %>
 
 

 

 

Produced by Lake House Copyright � 2006 - 2013 The Associated Newspapers of Ceylon Ltd.

Comments and suggestions to : Web Editor