This topic is locked

Search box field

9/25/2009 2:39:26 PM
ASPRunnerPro General questions
J
jmccullough author

I have checked the box to "Not display records on first page" and this works great but if someone logs in and clicks on the Search button without entering any criteria it displays all records. Is there a way to prevent the records from displaying unless certain criteria is entered?
Thanks for any help or suggestions.

Sergey Kornilov admin 9/25/2009

Here is example for PHPRunner:

http://www.xlinesoft.com/phprunner/docs/make_search_button_return_data_only_when_search_value_was_entered.htm
Just in case here is the similar code for ASPRunnerPro:

if Request("a")=="search" and Request("SearchFor")="" then _

strWhereClause = " 1=0 "
J
jmccullough author 9/28/2009



Here is example for PHPRunner:

http://www.xlinesoft.com/phprunner/docs/make_search_button_return_data_only_when_search_value_was_entered.htm
Just in case here is the similar code for ASPRunnerPro:

if Request("a")=="search" and Request("SearchFor")="" then _

strWhereClause = " 1=0 "



Thanks so much. This worked perfectly.