This topic is locked

Search results using a URL

8/10/2004 14:39:48
ASPRunnerPro General questions
author

Is there any way of an ASP Runner active server page to return a list of records based on the URL I enter.
For example, I want to do something like this:
http://localhost/editcompany.asp?companyID=1
This would then display the company with ID=1 in the editcompany.asp page.
or http://localhost/listcompany.asp?city=london
Would then list all companies where the data in the field [city] equalled "london"
Is this possible???

500150 8/10/2004

yes , even I wanted to search results using URL . Is that possible using ASPRunner ?
Thanks,

Sergey Kornilov admin 8/12/2004

Currently it's not possible with ASPRunner.
You can do this if you pass parameters through URL and change ASP page to read data from Request.QueryString instead of Request.Form.

500151 4/8/2005

Could you explain this in more detail? Thanks!

O
oldASPuser 1/30/2006

Could you explain this in more detail? Thanks!


I am using an old version (2.4) of ASPRunner and I am using a form to get search results.

The code is a part of the generated list.page.
<form method="post" action="your_list.asp" name="frmAdmin">

<input type="hidden" id="action" name="action" value="Search">

<input type="hidden" id="SearchField" name="SearchField" value="AnyField">

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

<input type="text" size="20" name="SearchFor">
<input type="button" name="SearchButton" value="Search" onClick="java script: document.forms.frmAdmin.action.value = 'Search'; document.forms.frmAdmin.submit();">

</form>
When passing the same parameters to a hyperlink it is not working, I don't now why.

Sergey Kornilov admin 1/30/2006

This feature didn't exist in ASPRunner 2.4. Consider upgrading to ASPRunnerPro 4.0.