This topic is locked

Modifying my Asprunner Asp page

1/30/2004 4:18:36 PM
ASPRunnerPro General questions
W
WesO author

Im new to asp, and i made an asp page using asprunner. is it possible to remove a pulldown menu from my asp page? because everytime i do, i get "page cannot be displayed" when i hit the search button.

Sergey Kornilov admin 1/30/2004

Hi,
pull-down menus with search options and list of search fields are part of search form. If you remove pull-down menu you need to add a hidden form field with default search option.
In ..._list.asp file find this portion of code:

<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>


and replace it with:

<input type="hidden" name="SearchOption" value="Contains">


I hope this helps.

W
WesO author 1/31/2004

I was in _search.asp because i need to change the advanced search options fields. i changed the order of the search options so when the page comes up, equals is already selected, so i just need to hide that pull down menu. do i do the same thing that i would do on _list.asp?
you can pull up the site if you want. its http://www26.brinkster.com/wesolson/gallon...HART_search.asp

Sergey Kornilov admin 2/1/2004

Hi,
do you like to hide pull-down menu or set default value to Equals?
If you like to hide just replace pull-down HTML with the following code. You need to do it for each field on advanced search page.

<input type="hidden" name="SearchOption" value="Equals">
W
WesO author 2/2/2004

Thanks. That worked really good.