Database

Páginas: 4 (786 palabras) Publicado: 11 de febrero de 2013
How to create database search and search results pages with Expression Web 1. In Expression Web, open an existing website or create a new website. If your website does not already contain yourdatabase file, choose File > Import > File, click Add File to select your database file, and then click OK to import it. 2. Create two separate ASPX pages. Name one of the pages search.aspx, whichis where we will put the search form. Name the second page results.aspx , which is where we will display the search results.  3. Open the search.aspx page; being an ASPX page, it already has a formon it. The following screenshot is the Split view of the search.aspx page, showing the source code at the top and the Design view at the bottom. 4. In the Toolbox task pane, expand the ASP.NET andStandard categories and drag the TextBox control into the form on your page. This TextBox control will be the field your site visitors use to enter their search terms. 5. To give the TextBox controla useful name, select the TextBox control in your page, go to the Tag Properties task pane, and then change the value of the ID property to a meaningful name. In this example, the TextBox control wasgiven an ID of “LastName” (without spaces) since that is the name of the database field we are planning for our site visitors to search on. 6. You need a submit button for the form so go to theToolbox task pane and drag a Button control from the ASP.NET Controls > Standard category onto your form. 7. Select the Button in your form, go to the Tag Properties task pane, and then change theText property of the button to a meaningful name such as "Do The Search”. (The text you enter is displayed on the button in the web page.) 8. Next, set the value of the button’s PostBackURL propertyto results.aspx. The PostBackURL causes the text entered by the site visitor to become the input parameter for the search results on the results.aspx page. 9. Save the search.aspx page. 10. Open...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Database
  • Database
  • Database
  • databases
  • Database
  • Database
  • Crear Database
  • Promujer Database

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS