ViewState keeps only values rendered at code-behind and not anything modified after the page is fully rendered.
display=none (don’t use the
onChange event, set the selected value to this newly-added text box. Since this textbox is an input control, your code-behind should be able to capture the input value. You can then pass this value as an OUT parameter to WorkflowGen.