Appendix: Using the RUNACTION Element Tag

You can include an instruction in a page to execute a KnowledgeKube action when the page is first accessed or a postback occurs. For this to work, you must place the tag in the markup of a page that you intend to load after the one containing the necessary model.

This tag will not work if you place it on the same page as a MODEL tag. The tag will not display anything on the page unless the action fails for some reason, in which case it will present an error message.

This element tag has the following default syntax:

<%# RUNACTION(Expression) %>

The following parameters are required:

Parameter Description
Expression A string containing the name of the action you want to run.

An example of a complete RUNACTION tag is as follows:

<%# RUNACTION(MyAction) %>