A search page on the web typically contains form fields in which the user enters search parameters. When the user clicks a button, the search results are displayed.
An empty form is created on the page. You may have to enable Invisible Elements (View > Visual Aids > Invisible Elements) to see the forms boundaries, which are represented by thin red lines.
In the forms Property inspector, you should select POST
as the forms Method attribute. You dont need to specify an Action attribute for the form. The ASP.NET page will post back to itself and the search results will be displayed on the same page.
You can insert any ASP.NET form control, including a TextBox, CheckBox, RadioButton, ListBox, or DropDownList control. You can add as many controls as you want to help users refine their searches. However, keep in mind that the greater the number of search parameters on the search page, the more complex your SQL statement will be.
For each control, make sure you specify an ID attribute such as txtCity for a TextBox control or lbxCountry for a ListBox control.
For more information, see Adding ASP.NET form controls to a page.
Make sure you specify an ID attribute for the button, such as btnSearch, and text for the button label, such as Search.
The search form is done. The next step in creating the search page is to define a DataSet to find and store the search results. See Searching with only one search parameter (ASP.NET).