try { // First ask TAA for the registered module envTAA = TeamWiSE.TAA.Web.Application.ModlEnv("VO-I-POSTKORB"); if (envTAA == null && !IsPostBack) { // As we're not in a postback event and apparently // haven't registered yet, do so now. envTAA = TeamWiSE.TAA.taaEnv.taaRegister("VO-I-POSTKORB"); // Set conditon class handler for class TAAWEB, so we get notified, // if another ASPX page will be activated. if (envTAA != null) envTAA.cndClassHdlIdSet("TAAWEB", 4711); } if (envTAA == null) { // error handling } } catch (TAACondition cnd) { if (cnd.cndGroup == "ZZTAAIM1" && cnd.cndCode == 24) { // ZZTAAIM(24) here, means another module is active or expected to register. // We can either redirect to that page, or produce an error. string sPage = (string) cnd.cndAssoc("Page"); cnd.cndRemove(); Response.Redirect(sPage, true); } // error handling }