<% strCode = Request.QueryString("itemcode") Set Conn = Server.CreateObject("Adodb.Connection") Conn.Open Application("tt18_ConnectionString") Set Rs = Server.CreateObject("Adodb.Recordset") Sql="select * from NewsHeadC where itemcode = ""&strCode&"" order by TrDate DESC,a.NewsTime DESC" Rs.Open Sql,Conn,1,3 Rs.PageSize = 15 Count = Rs.PageCount if Rs.BOF or Rs.EOF then Response.Write "