This topic is locked

Hiding records from list view.

11/2/2005 5:46:12 AM
ASPRunnerPro General questions
author

Hi quick question.
I have added 2 links under the "Log in as Guest" link, that take you to modiffied versions of the list view.
There is a column in the table that has either 1 or 2 in the database.
I need to have one list view display only rows that have a tag of 1

and the other list view to display only rows with a tag of 2.
Is there a way to FORCE a search as the page loads ? (so when the page loads it filters the data as if it were searched)

Sergey Kornilov admin 11/2/2005

Sure you can do this.
Proceed to the list page and run bsuc serach where field equals "1". Copy URL and paste it to the login page code. Repeat the same for value "2".

500369 11/4/2005

The URL doesnt change after the basic search, it still remains suppliers_list.asp

Sergey Kornilov admin 11/4/2005

If I proceed to ASPRunnerPro livedemo and search Products table for "box" I get the following address line:

http://xlinesoft.com/asprunnerpro/livedemo/livedemo1/Products_list.asp?TargetPageNumber=1&action=Search&lang=&orderby=&dir=&PageSize=20&masterkey=&SearchField=AnyField&SearchOption=Contains&SearchFor=box&PageSizeSelect=20


Are you saying it works different on your side?

500370 11/4/2005

Yes there are no asp variables. It might be something to do with the server. It only displays the .asp part without any "?"

500371 11/4/2005

Pluss your method didnt work. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=6630&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' /> I see youre trying to pass the searchfor variable... but it doesnt seem to affect the page. The only way it affects the page when the form.submit() routine is called (when you press the search button) and searchfor value is read

Sergey Kornilov admin 11/7/2005

It seems that you use old ASPRunnerPro version.

You should upgrade it to current to pass a search criteria in URL.