示例#1
0
    //Handle dynamic page title and keywords
    private void GetMetaTitleTagKeyword(string strPageTitle, string strKeywords)
    {
        iPage = (int)Util.Val(Request.QueryString["page"]);

        //Assign page title and meta keywords
        Page.Header.Title = PageTitle.Title(strPageTitle, iPage);
        HtmlMeta metaTag = new HtmlMeta();

        metaTag.Name = "Keywords";
        //You can add more keywords if you want.
        metaTag.Content = strKeywords;
        this.Header.Controls.Add(metaTag);
    }
示例#2
0
    //Handle dynamic page title and keywords
    private void GetMetaTitleTagKeywords(string strPageTitle)
    {
        iPage = (int)Util.Val(Request.QueryString["page"]);

        string GetCategoryName;

        GetCategoryName = strPageTitle + " Recipes ";

        //Assign page title and meta keywords
        Page.Header.Title = PageTitle.Title(GetCategoryName, iPage);
        HtmlMeta metaTag = new HtmlMeta();

        metaTag.Name = "Keywords";
        //You can add more keywords if you want.
        metaTag.Content = strPageTitle + DynamicKeywords.Keywords(constant.intRecipeDynamicKeywordCategory);
        this.Header.Controls.Add(metaTag);
    }