ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 30th, 2003, 09:05 AM
fizzy's Avatar
fizzy fizzy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Dublin, Ireland
Posts: 100 fizzy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 5 sec
Reputation Power: 6
index server search results page formatting

apologies if i have posted in the wrong place but i didn't know where else this would fit...

i'm working on a site that uses MS index server for its search feature. i'm trying to format the results page which is a html extension file (.htx)

i am having 2 problems:

1) date format: the date each file was last modifed is currently shown as 6/16/03 3:08:54 AM and is obtained using <%Write%> - can i change that to something like dd/mm/yy ?

2)i want to have alternating colour rows for the result list table.
i could do that easily in asp, and i know i can still use if and else statements in the .htx file but there seems to only be a very limited set of operators allowed: http://msdn.microsoft.com/library/d...uwebqy_6xun.asp - are division and modulus operations possible?
better again, is this feature already there so i only need to include a special tag/attribute?

any advice would be greatly appreciated!

Last edited by fizzy : July 30th, 2003 at 09:11 AM.

Reply With Quote
  #2  
Old July 31st, 2003, 03:42 PM
don_sparko's Avatar
don_sparko don_sparko is offline
Digitally Challenged
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 280 don_sparko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 14 sec
Reputation Power: 6
is the htx file in a standard text format? if it is you should be able to read it in and parse the rows into an array and deal with it more effectively. don't know if that will work, but its worth a try

Reply With Quote
  #3  
Old August 5th, 2003, 09:05 AM
fizzy's Avatar
fizzy fizzy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Dublin, Ireland
Posts: 100 fizzy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 5 sec
Reputation Power: 6
thanks for the reply.
here is the code for the .htx file:

Code:
<html><head><body>
<p>Number of documents found:<%CiMatchedRecordCount%></p>

<table border="0" cellpadding="1" cellspacing="1"><tr> 
          <td>Document</td>
          <td>Date</td>
          <td>Size</td>
          <td>Score</td>
        </tr>
        
 <%begindetail%> 
        <tr> 
          <td><a href="<%EscapeURL vpath%>"><%if DocTitle ISEMPTY%><%Filename%><%else%><%DocTitle%><%endif%></a></td>
          <td><%write%></td>
          <td><%size%></td>
          <td><%rank%></td>
        </tr>
  <%enddetail%>
  
  <%if CiMatchedRecordCount GT 0%></table><%endif%>
</body></html>


I'm not sure how I would go about parsing this! I know so little about what I'm doing I don't know whether that would help me

My basic problem is that there is no looping going on to create the results table; the <%begindetail%> and <%enddetail%> just gets processed for each result so there seems to be no way to format individual cells differently?
I was hoping there might be other tags you could use that would give more flexibility??

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > index server search results page formatting


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway