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#

protectedvoidPage_Load(objectsender,EventArgse){switch(this.CurrentWorkflowActionName){caseINITIATES://writecodeherebreak;caseSECOND_ACTION://write code herebreak;}}

VB

ProtectedSubPage_Load(ByValsenderAsObject,ByValeAsEventArgs)SelectCase(Me.CurrentWorkflowActionName)CaseINITIATES'writecodehereCaseSECOND_ACTION'writecodehereEndSelectEndSub