Issue
How can I show/hide an HTML Table using the WorkflowGen FORM_FIELD_HIDDEN
action parameter?
Solution
There are two types of tables in Visual Studio: .NET <asp:Table>
and HTML <table>
.
The .NET table control is a server-side control that has an ID and the runat=server
attribute, while the HTML table is a client-side control that has neither an ID nor the runat=server attribute
(by default).
In order to allow WorkflowGen or code-behind to have access to the properties of an HTML control, you need to manually add the ID and the runat=server
attribute in the source code.
Example
<table id=TABLE1 runat=server> </table>
This way, you can put TABLE1
in the FORM_FIELD_HIDDEN
action parameter if you want to hide this table and all elements within it when the action is triggered.