private string GetExportUrl() { string url = this.ResolveUrl/**/ ("~/Wiki/ShowExport.aspx"); if (!string.IsNullOrEmpty(Request["pageid"])) { url += "?PageID=" + ShowRouter.GetGuidParameterValue(Request["pageid"]).ToString(); } else if (!string.IsNullOrEmpty(Request["wiki"]) && !string.IsNullOrEmpty(Request["art"])) { url += "?wiki=" + Request["wiki"] + "&art=" + Request["art"]; } return(url); }
static ShowRouter() { _instance = new ShowRouter(); _kbArticleType = -1; Type attType; FieldInfo typeConst; if ((attType = BuildManager.GetType(_WIKIARTICLETYPE_ATTRIBUTE_TYPE, false)) != null && (typeConst = attType.GetField(_TYPE_CONST_NAME)) != null) { _kbArticleType = (int)typeConst.GetValue(null); } Type twaType; if ((twaType = BuildManager.GetType(_TEMPLATEWIKIARTICLE_TYPE, false)) != null) { _isTemplateArticle = twaType.GetMethod(_IS_TEMPLATE_METHOD); } }