)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » Seo (Ia.Cl.Models)

Public general use code classes and xml files that we've compiled and used over the years:

Search Engine Optimization (SEO) support class.

    1: using System;
    2: using System.Configuration;
    3:  
    4: namespace Ia.Cl.Models
    5: {
    6:     ////////////////////////////////////////////////////////////////////////////
    7:  
    8:     /// <summary publish="true">
    9:     /// Search Engine Optimization (SEO) support class.
   10:     /// </summary>
   11:     /// <remarks> 
   12:     /// Copyright © 2001-2015 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   13:     ///
   14:     /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
   15:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   16:     ///
   17:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   18:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   19:     /// 
   20:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   21:     /// 
   22:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   23:     /// </remarks> 
   24:     public abstract class Seo
   25:     {
   26:         ////////////////////////////////////////////////////////////////////////////
   27:  
   28:         /// <summary>
   29:         ///
   30:         /// </summary>
   31:         public Seo() { }
   32:  
   33:         ////////////////////////////////////////////////////////////////////////////
   34:  
   35:         /// <summary>
   36:         ///
   37:         /// </summary>
   38:         public static string Title()
   39:         {
   40:             string s;
   41:  
   42:             s = null;
   43:  
   44:             try
   45:             {
   46:                 s = ConfigurationManager.AppSettings["siteName"].ToString() + ": " + ConfigurationManager.AppSettings["companyName"].ToString() + " - "
   47:                     + ConfigurationManager.AppSettings["legalCountry"].ToString() + " " + SiteMap.CurrentNode.Title.ToString();
   48:             }
   49:             catch (NullReferenceException)
   50:             {
   51:                 try
   52:                 {
   53:                     s = ConfigurationManager.AppSettings["siteName"].ToString() + ": " + ConfigurationManager.AppSettings["companyName"].ToString() + " - "
   54:                         + ConfigurationManager.AppSettings["legalCountry"].ToString();
   55:                 }
   56:                 catch (Exception)
   57:                 {
   58:                 }
   59:             }
   60:  
   61:             return s;
   62:         }
   63:  
   64:         ////////////////////////////////////////////////////////////////////////////
   65:  
   66:         /// <summary>
   67:         ///
   68:         /// </summary>
   69:         public static string ArabicTitle()
   70:         {
   71:             string s;
   72:  
   73:             s = null;
   74:  
   75:             try
   76:             {
   77:  
   78:                 s = ConfigurationManager.AppSettings["arabicSiteName"].ToString() + ": " + ConfigurationManager.AppSettings["arabicCompanyName"].ToString() + " - "
   79:                     + ConfigurationManager.AppSettings["arabicLegalCountry"].ToString() + " " + SiteMap.CurrentNode.Title.ToString();
   80:             }
   81:             catch (NullReferenceException)
   82:             {
   83:                 try
   84:                 {
   85:                     s = ConfigurationManager.AppSettings["arabicSiteName"].ToString() + ": " + ConfigurationManager.AppSettings["arabicCompanyName"].ToString() + " - "
   86:                         + ConfigurationManager.AppSettings["arabicLegalCountry"].ToString();
   87:                 }
   88:                 catch (Exception)
   89:                 {
   90:                 }
   91:             }
   92:  
   93:             return s;
   94:         }
   95:  
   96:         ////////////////////////////////////////////////////////////////////////////
   97:  
   98:         /// <summary>
   99:         ///
  100:         /// </summary>
  101:         public static string Link()
  102:         {
  103:             string s;
  104:  
  105:             s = "https://*";
  106:  
  107:             return s;
  108:         }
  109:  
  110:         ////////////////////////////////////////////////////////////////////////////
  111:         ////////////////////////////////////////////////////////////////////////////
  112:  
  113:     }
  114: }