WorkflowGen.com | Knowledge Base | Documentation | Downloads | Support | RSS

« How can I build a sql query in to retrieve data from an external database? | Main | How to make the FileUpLoad control display as a link to the file. »

How can I make my webform behave differently depending on the current action in the workflow?

Posted on Sunday, March 2, 2008 at 12:55 by Registered CommenterWFG Team in | CommentsPost a Comment

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 ObjectByVal As EventArgs)
        
Select Case (Me.CurrentWorkflowActionName)
            
Case "INITIATES"
                
' write code here
            
Case "SECOND_ACTION"
                
' write code here
        
End Select
    End Sub

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.
Member Account Required
You must have a member account on this website in order to post comments. Log in to your account to enable posting.