<% 'Connection String object strConnectionString = "Driver={SQL Server};Server=173.192.89.144;DSN=;Database=gtc;UID=gtc;PWD=123india;" 'Set Recordset variable Set RS = Server.CreateObject("ADODB.RecordSet") %> ::Downloads::
 
Home About Us FAQ Downloads Landmark Cases
 
  Downloads
 
<% 'SQL to fetch the values from the table Downloads SQL = "Select * from Downloads Order by DOS DESC" RS.Open SQL,strConnectionString,3,3,1 If not RS.EOF and not RS.BOF Then While not RS.EOF %> <% RS.MoveNext Wend End if RS.Close Set RS = nothing %>
  Document Name Document Type Date of Submission
" target="_blank"><%=RS("DocTitle")%> <% docType = Split(RS("doc"),".") if UCase(docType(1)) = "DOC" Then imgToDisp = "doc.gif" elseif UCase(docType(1)) = "PDF" Then imgToDisp = "pdf.gif" elseif UCase(docType(1)) = "RTF" Then imgToDisp = "doc.gif" elseif UCase(docType(1)) = "XLS" Then imgToDisp = "xls.gif" End if %> <%=RS("DOS")%>