شركة التطبيقات المتكاملة لتصميم النظم البرمجية الخاصة

Integrated Applications Programming Company

Skip Navigation LinksHome » Code Library » Seo

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