-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Microsoft Windows Workflow Foundation 4.0 Cookbook
By :

In this task, we will create an e-mail sending workflow and run it in an ASP.NET site.
We need an e-mail sending workflow service hosted in IIS7. We can refer to the previous section, Hosting a workflow service in IIS7, in this chapter.
Create an ASP.NET4 web application:
Create an ASP.NET4 web application and name it HostingWorkflowInASPNET
. Because we are going to host WF4 workflow in this website, we have to make sure it is an ASP.NET4 website. To check the version, right-click the project name HostingWorkflowInASPNET
and select Properties.
Author a Workflow:
Add an activity to the website and name it Workflow.xaml
.
Author the workflow as follows:
Set the properties for SendEmail1:
Set the parameters for SendEmail1:
Set the properties of SendEmail2. The only difference as compared to SendEmail1 is the DisplayName.
Set the parameters for SendEmail2:
Alter the Default.aspx page:
Add a Button control to the Default.aspx
page:
<%@ Page...
Change the font size
Change margin width
Change background colour