http://expression.microsoft.com/en-us/dd571513(printer).aspx



Similar documents
Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Microsoft Office 365 Portal

Tutorial #1: Getting Started with ASP.NET

Working with SQL Server Integration Services

Migrating and Maintaining FrontPage 2003 Web Sites

PDF Web Form. Projects 1

About SharePoint Server 2007 My Sites

Kentico CMS 7.0 User s Guide. User s Guide. Kentico CMS

Subscribe to RSS in Outlook Find RSS Feeds. Exchange Outlook 2007 How To s / RSS Feeds 1of 7

This tutorial provides detailed instructions to help you download and configure Internet Explorer 6.0 for use with Web Commerce application.

Section 1: Ribbon Customization

Google Sites: Creating, editing, and sharing a site

Create a Google Site in DonsApp

High Impact & Alpha Five: A Mail Merge Guide.

Jolly Server Getting Started Guide

Google Sites. How to create a site using Google Sites

QuickBooks Mac 2014 Getting Started Guide

Table of Contents. 1. Content Approval...1 EVALUATION COPY

SMS for Outlook. Installation, Configuration and Usage Guide

Creating a Website with Google Sites

Title: SharePoint Advanced: Adding An Image to A Site Purpose Policy Definitions

Outlook Plugin. What is MangoApps for Outlook?

Kentico CMS 5.5 User s Guide

Microsoft Business Intelligence 2012 Single Server Install Guide

Kentico CMS User s Guide 5.0

EBOX Digital Content Management System (CMS) User Guide For Site Owners & Administrators

Kentico CMS for.net User Groups

MICROSOFT ACCESS 2003 TUTORIAL

Hands-on Guide. FileMaker Pro. Using FileMaker Pro with Microsoft Office

Mail Merge Creating Mailing Labels 3/23/2011

Microsoft SharePoint Products & Technologies

Changing the Default Delivery Location

Title: SharePoint Advanced Training

1. Starting the management of a subscribers list with emill

FrontPage 2003: Forms

WebPlus X8. Quick Start Guide. Simple steps for designing your site and getting it online.

Contents. Launching FrontPage Working with the FrontPage Interface... 3 View Options... 4 The Folders List... 5 The Page View Frame...

Microsoft Power BI for Office 365 Provisioning Guide

Navigating Microsoft Word 2007

Creating a Website with Google Sites

QUANTIFY INSTALLATION GUIDE

Microsoft Access to Microsoft Word Performing a Mail Merge from an Access Query

Appendix A How to create a data-sharing lab

Newsletter Sign Up Form to Database Tutorial

Legal Information Trademarks Licensing Disclaimer

Add in Guide for Microsoft Dynamics CRM May 2012

FORM SIMPLICITY QUICK REFERENCE GUIDE PROFESSIONAL/ULTIMATE EDITION

Hands-On Lab. Building a Data-Driven Master/Detail Business Form using Visual Studio Lab version: Last updated: 12/10/2010.

BID2WIN Workshop. Advanced Report Writing

ADOBE ACROBAT CONNECT ADD-IN FOR MICROSOFT OUTLOOK USER GUIDE

Sitecore Ecommerce Enterprise Edition Installation Guide Installation guide for administrators and developers

From Data Modeling to Data Dictionary Written Date : January 20, 2014

SharePoint Wiki Redirect Installation Instruction

Quick Start Guide. This guide will help you get started with Kentico CMS for ASP.NET. It answers these questions:

Terminal Four. Content Management System. Moderator Access

OneDrive for Business User Guide

Chapter 19: Shopping Carts

SharePoint List Filter Favorites Installation Instruction

Using SQL Reporting Services with Amicus

Reports and Documents Generator for SharePoint ver.: 2.2

SharePoint How To s / Team Sites 1of 6

2) Sharing Projects Made easy by IntelliGantt s Share Wizard, there are three share options to fit the needs of your project.

NDSU Technology Learning & Media Center. Introduction to Google Sites

Getting Started - The Control Panel

Aspect WordPress Theme

Microsoft Expression Web

Using Remote Web Workplace Version 1.01

Microsoft FrontPage 2003

How to configure your Acrobat Signature Appearance

Introduction to SharePoint For Team Site Owner/Administrators. Instructional Guide

Using and the Internet

Create a Simple Website. Intel Easy Steps Intel Corporation All rights reserved.

Getting Started Guide: Transaction Download for QuickBooks Windows

Erie 1 BOCES/WNYRIC. Secure File Transfer. Upload/Download Wizard

DbSchema Tutorial with Introduction in SQL Databases

Joomla! template Blendvision v 1.0 Customization Manual

Using FileMaker Pro with Microsoft Office

Flash Objects. Dynamic Content 1

Microsoft SharePoint Products & Technologies

Build an ArcGIS Online Application

Quick Start Guide Simple steps for editing and manipulating your photo.

How To Create A Site In Sharepoint 2013

What is a Mail Merge?

FAQs. OneDrive for Business?

Quick Start Guide. Web Conferencing & Secure Instant Messaging via Microsoft Office Communications Server Apptix Live Support:

How to configure the DBxtra Report Web Service on IIS (Internet Information Server)

Brainshark/Salesforce.com Integration Installation Procedures

Livezilla How to Install on Shared Hosting By: Jon Manning

Creating a Patch Management Dashboard with IT Analytics Hands-On Lab

Mail Chimp Basics. Glossary

Outlook Web App User Guide

Volume FIRST WALKTHROUGH. The 10-Minute Guide to Using Newsletter Services. First Walkthrough: the 10-Minute Guide

LMS 365 Learning Module Builder Add-in User Guide VERSION X

(These instructions are only meant to get you started. They do not include advanced features.)

Mail Merge (Microsoft Office 2010)

A database is a collection of data organised in a manner that allows access, retrieval, and use of that data.

User Guide. Live Meeting. MailStreet Live Support:

Blogging. Wordpress.com Weebly.com Penzu.com Blog.com Wix.com Blogger

LYNC 2010 USER GUIDE

Add in Guide for Microsoft Dynamics NAV May 2012

Transcription:

Page 1 of 6 2009 Microsoft Corporation. All rights reserved. Create a Database Search Page Using Expression Web Authors:Clark Kurtz [ http://social.expression.microsoft.com/en-us/profile/?user=clarknk ] (A.K.A Homepage Doctor) and Anna Ullrich [ http://social.expression.microsoft.com/en-us/profile/? user=anna%20ullrich ] The old FrontPage method With the Database Results Wizard in FrontPage, you could select Insert > Database > Results and then click your way along, choosing fields that a user would submit on a search form, and the Database Results Wizard would automatically create the search form for you. You didn't have to know or understand how the form passed the information to the database and generated search results. The new method in Expression Web The old FrontPage method was certainly simple, but you will find that using the ASP.NET controls in Expression Web is just as simple, plus you will gain a lot with the new technique. For example, with Expression Web you can integrate the membership and login features of ASP.NET with your database to enable users to manage their own information something that could not be not be accomplished at all with FrontPage. What you ll need For this tutorial, you will need an Access 2003 database with the file extension *.mdb. (You can also use SQL databases, sitemap files, and XML files as data sources in Expression Web but for the purposes of this tutorial we re using an Access 2003 database.) If you don t have an Access 2003 database, you can download a database template from the Microsoft Office Online website to get you started: http://office.microsoft.com/en-us/templates/ct101172481033.aspx [ http://office.microsoft.com/enus/templates/ct101172481033.aspx ] For this tutorial, the best fit is probably the Sales contact management database here: http://office.microsoft.com/en-us/templates/tc010178391033.aspx?categoryid=ct101426031033 [ http://office.microsoft.com/en-us/templates/tc010178391033.aspx?categoryid=ct101426031033 ] And if you don t have Microsoft Office Access, you can download a trial version of the 2007 program, which is able to work with Access 2003 databases: http://office.microsoft.com/search/redir.aspx?assetid=xt101645181033 [ http://office.microsoft.com/search/redir.aspx?assetid=xt101645181033 ] And last but not least, if you don t already have Expression Web, you can download a trial version here: http://www.microsoft.com/expression/products/redirecttotrialweb.html [ http://www.microsoft.com/expression/products/redirecttotrialweb.html ] 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 your database 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, which is where we will put the search form. Name the second page results.aspx, which is where we will display the search results. Expression Newsletter Inspiration and information you'll find it in the Expression Newsletter. Tips from design experts Step-by-step tutorials Skill-building videos Read the latest issue Subscribe now [ https://profile.microsoft.com/regsysprofilecenter/wizard.aspx?wizid=b62e5f03 474a-a5f4-ff0116a3ccaa&lcid=1033 ] Discussion Forums -us/general/threads/ ] -us/blend/threads/ ] -us/web/threads/ ] -us/design/threads/ ] -us/encoder/threads/ ] Design Inspiration [ http://www.custompapertoys.com/default.aspx ] Custom Paper Toys [ http://www.custompapertoys.com/default.aspx ] Custom Paper Toys is the home of little paper creatures created by Matt Hawkins, many of which can be downloaded and constructed. More Inspiration... Expression Studio Forum -us/general/threads/ ] Expression Blend Forum -us/blend/threads/ ] Expression Web Forum -us/web/threads/ ] Expression Design Forum -us/design/threads/ ] Expression Encoder Forum -us/encoder/threads/ ] 3. Open the search.aspx page; being an ASPX page, it already has a form on 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.

Page 2 of 6 4. In the Toolbox task pane, expand the ASP.NET and Standard 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 control a 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 was given 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 the Toolbox task pane and drag a Button control from the ASP.NET Controls > Standard category onto your form.

Page 3 of 6 7. Select the Button in your form, go to the Tag Properties task pane, and then change the Text 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 property to 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 the results.aspx page. 11. In the Toolbox task pane, expand the ASP.NET Controls > Data category, and drag a GridView control into the form in the Design view of your results.aspx page.

Page 4 of 6 Click the arrow button in the upper right corner of the GridView control in Design view, and in the GridView Tasks flyout click the drop down menu next to Choose Data Source, and select New data source. 12. In the Data Source Configuration Wizard dialog box, select the type of database the user will be searching. For this example, we selected an Access Database, and accepted the default ID of AccessDataSource1. Click OK, and then follow the onscreen instructions in the dialog box to select your database file. When you get to the Configure the Select Statement screen (see the next screenshot) go to the next step

Page 5 of 6 13. Under Columns, select the fields you want to show in the GridView results (you can select all the fields by checking the column with the asterisk). In the example, FirstName, LastName, CompanyName, and EmailName have been selected from the database. If you want to display all the fields, simply select the asterisk. 14. And now here is the important part: Click the WHERE button to display the Add WHERE Clause dialog box. 15. In the Add WHERE Clause dialog box, choose the field you want to search on from the Column dropdown list. This should be a field that is expecting the input text from the search form. For example, if your database listed FirstName, LastName, City, Phone, and you are trying to allow someone to search by last name, you would select the LastName field. 16. Leave Operator set at "=". 17. Set Source to "Form". 18. Under Parameter Properties, for the Form field property, type the ID that you gave your search form field on the search.aspx page. (For example, we had named the text field "LastName" on the search.aspx page). 19. Click Add. 20. Then click OK, Next, TestQuery, OK, and then Finish. 21. Save the page and close it. 22. Open search.aspx in Expression Web, and then click the Preview in Browser button. This launches the Microsoft Expression Development Server which sends your page to your web browser, where you can test your search page. Here s how the search.aspx page looks in Internet Explorer 7:

Page 6 of 6 And after entering Philips in the box and clicking the search button, the results.aspx page appears and displays these results: Team Blogs Web Team [ http://blogs.msdn.com/xweb.aspx ] Blend and Design Team [ http://blogs.msdn.com/expression.aspx ] Encoder Team [ http://blogs.msdn.com/expressionencoder.aspx ] Bloggers Anna's Blog [ http://blogs.msdn.com/anna.aspx ] kirupa.com [ http://www.kirupa.com/default.aspx ] ElectricBeach [ http://electricbeach.org/default.aspx ] Nibbles Tutorials [ http://nibbles.wordpress.com/default.aspx ] Silverlight Blogs [ http://silverlight.net/blogs/silverlight/ ] Learning Expression Studio [ http://expression.microsoft.com/cc136522.aspx ] Web [ http://expression.microsoft.com/cc197140.aspx ] Blend + SketchFlow [ http://expression.microsoft.com/cc197141.aspx ] Encoder [ http://expression.microsoft.com/cc197144.aspx ] Design [ http://expression.microsoft.com/cc197142.aspx ] Quick Starts Silverlight: One Step at a Time [ http://expression.microsoft.com/dd565865.aspx ] Expression Web for FrontPage Users [ http://expression.microsoft.com/dd326841.aspx ] Expression Gallery Designs [ http://gallery.expression.microsoft.com/site/items/search/design ] Web Templates [ http://gallery.expression.microsoft.com/site/items/search/templates ] Samples [ http://gallery.expression.microsoft.com/site/items/search/samples ] Themes [ http://gallery.expression.microsoft.com/site/items/search/themes ] Behaviors [ http://gallery.expression.microsoft.com/site/items/search/behaviors ] Code Snippets [ http://gallery.expression.microsoft.com/site/items/search/scripts ] Tools and Add-ins [ http://gallery.expression.microsoft.com/site/items/search/tools ] Resources Mix Online [ http://www.visitmix.com/default.aspx Microsoft /web [ http://www.microsoft.com/web/d PHP on Windows [ http://www.microsoft.com/web/platform/phponw CodePlex [ http://www.codeplex.com/default.aspx Web Apps SharePoint Server [ http://www.microsoft.com/sharepoint/default.ms Commerce Server [ http://www.microsoft.com/commerceserver/en/u Web App Gallery [ http://www.microsoft.com/web