This topic is locked

Search Options

5/20/2004 8:52:51 PM
ASPRunnerPro General questions
B
berga@alpenacc.net author

Is there any way to disable the contains equal starts with search option? I only need contains...it works just fine, and I would like to either disable or remove that drop down box. I believe it will just confuse the individuals using the database. Could you let me know how to do that, and also if there are any ramifications that I might not be aware of! Thanks.
Allan

Sergey Kornilov admin 5/20/2004

Allan,
here is what you can do. Open ..._list.asp in any text editor and replace the following code section:

<SELECT ID="SearchOption" NAME="SearchOption" SIZE="1">

<OPTION VALUE="Contains">Contains</option>

<OPTION VALUE="Equals">Equals</option>

<OPTION VALUE="Starts with ...">Starts with ...</option>

<OPTION VALUE="More than ...">More than ...</option>

<OPTION VALUE="Less than ...">Less than ...</option>

<OPTION VALUE="Equal or more than ...">Equal or more than ...</option>

<OPTION VALUE="Equal or less than ...">Equal or less than ...</option>

</SELECT>


with

<input type=hidden ID="SearchOption" NAME="SearchOption" value="Contains">


I hope this helps.

B
berga@alpenacc.net author 5/20/2004

Works Great!!! Thanks much!
Allan