This topic is locked

Advanced Search

9/2/2005 9:01:37 PM
ASPRunnerPro General questions
author

I was wondering if anyone could help. On the advanced search page, I was wondering would it be possible to hide and even remove the criteria column (i.e equal, contains, greater than etc) from the searh and make the search criteria alway equal to for all basis??????
Thanks

Sergey Kornilov admin 9/3/2005

You can modify ..._search.asp file for this purpose.
Find Sub WriteSearchOptions.
Here is how you need to change it:

Sub WriteSearchOptions(sFormat, sValue)

Response.Write "<input type=hidden ID=""SearchOption"" NAME=""SearchOption"" value=""Equals"">"
End Sub

501240 9/3/2005

Thanks for that................
Is there anyway to just hide the criteria column from the search page?

Sergey Kornilov admin 9/5/2005

To hide this column you need to do the following for each field on the search page. Se my changes in bold:

<td width=0>

<% call WriteSearchOptions(GetEditFormat("FieldName"), Session("SearchOption_" & strTableName & "_FieldName")) %>

</td>