Example #1
0
    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);
    }
Example #2
0
	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);
		}
	}
Example #3
0
    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);
        }
    }