How can I make my webform behave differently depending on the current action in the workflow?
If you would like to control the way that a web form acts conditionally depending on the current action in WorkflowGen, add the following code to your project:
C#
protected void Page_Load(object sender, EventArgs e) {
switch (this.CurrentWorkflowActionName) {
case "INITIATES":
// write code here
break;
case "SECOND_ACTION":
// write code here
break;
}
}
VB
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
Select Case (Me.CurrentWorkflowActionName)
Case "INITIATES"
' write code here
Case "SECOND_ACTION"
' write code here
End Select
End Sub
Reader Comments