The API itp.SetRunModelSession allows custom ASP.NET web pages to set an ITP Model for a session that has been prepared for listmodels functionality. This results in a session prepared for runmodel functionality.
void SetRunModelSession (Page page,
string sessionid,
string model,
out string newsessionid)
Parameters:
page should be the current ASP.NET Page object, usually one should pass this.sessionid specifies the current session ID, which will be checked for valid listmodels functionality.model specifies the ITP Model to be run.newsessionid will receive a new session ID, which will identify a session with runmodel functionality.This function will validate the given session ID and throw an exception if the session is invalid, or if the session does not support listmodels functionality.