Friday, 19 November 2010

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") %> Aurora: Daily News supplement on the occasion of the inauguration of President Mahinda Rajapaksa's Second Term of Office | www.dailynews.lk
     
 
 
<% whichfile=ID & ".asp" Call ReadDisplayFile(whichfile) %> <% dim hdp, flnk dbpath="/2010/11/19/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