[SOLVED] Stopping a search form from displaying all records |
2/9/2010 13:57:07 | |
| ASPRunnerPro General questions | ||
|
R
ricor author
My project is worthless if visitors can display all records by hitting search with noting in the search field. |
||
|
|
Sergey Kornilov admin 2/9/2010 |
|
This article can help you with empty search problem: |
|
|
R
|
ricor author 2/15/2010 |
|
That article is for a simple search when the program only offers to make an advanced search. |
|
|
J
|
Jane 2/16/2010 |
|
Hi, if request("a")="adbsearch" and request("value_FieldName1")="" and request("value_FieldName2")="" then |
|
|
R
|
ricor author 2/16/2010 |
|
Hi, here is a sample for advanced search: if request("a")="adbsearch" and request("value_FieldName1")="" and request("value_FieldName2")="" then
|
|
|
|
Sergey Kornilov admin 2/16/2010 |
|
R
|
ricor author 2/16/2010 |
|
See instructions at http://xlinesoft.com/asprunnerpro/docs/make_search_button_return_data_only_when_search_value_was_entered.htm
|
|
|
|
Sergey Kornilov admin 2/17/2010 |
|
Green text is comments. Comments don't need to be deleted. You can leave them or delete them.
|
|
|
J
|
jmclain 2/17/2010 |
|
The following works for me when I want to require a field in Advanced Search. . . use List Page Before SQL Query Event
|
|
|
R
|
ricor author 2/17/2010 |
|
Die Hard, that worked! Finally, thanks!!! |
|