Share via


How to: Bind Data to a Speech Workflow Activity

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Bind data to a workflow activity in a Speech Server voice response application to, for example, add business rules or the results of SQL queries at run time.

Binding Data to a Speech Workflow Activity

The following procedure describes data binding to a QuestionAnswerActivity class. Data binding in a voice response application can also be performed with a StatementActivity class.

To add data binding code to a speech workflow activity

  1. Create a new voice response application.

    For more information, see How to: Create a Voice Response Application.

  2. In Solution Explorer, right-click VoiceResponseWorkflow1.cs, and then click View Designer.

  3. On the View menu, click Toolbox.

  4. In the Toolbox, click Speech Dialog Components to display speech activities.

  5. In the Toolbox, drag and drop a QuestionAnswer speech dialog component onto the design surface.

  6. On the design surface, right-click questionAnswerActivity1, and then click Property Builder.

  7. In the QuestionAnswer Property Builder dialog box, click Show Event Handler.

  8. In the code window, enter data binding code.

    For more information, see Connecting and Retrieving Data in ADO.NET and Using the .NET Framework Data Provider for SQL Server.

See Also

Tasks

Walkthrough: Access Dynamic Data

Other Resources

Speech Server Tutorials
Sample and Reference Applications