亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? webcontrol.cs

?? ComponentArt Web.UI 2006.1252 for asp.net2.0
?? CS
字號:
using System;
using System.IO;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using System.Configuration;
using System.Reflection;


namespace ComponentArt.Web.UI
{
  /// <summary>
  /// ComponentArt base WebControl class. Provides licensing, client-script rendering, and search engine stamp rendering services. All ComponentArt server controls inherit from this class. 
  /// </summary>
  public abstract class WebControl : System.Web.UI.WebControls.WebControl
	{
    #region Public Properties 

    /// <summary>
    /// ID of the client-side object corresponding to this control.
    /// </summary>
    /// <value>The name of the JavaScript global variable representing this control's client-side object.</value>
    /// <remarks>ClientObjectId is often the same as ClientID. However this cannot always be the case, 
    /// because not all ClientID values are valid JavaScript variable names.</remarks>
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
    [Browsable(false)]
    [Description("ID of the client-side object corresponding to this control.")]
    public string ClientObjectId
    {
      get
      {
        return this.GetSaneId();
      }
    }

    /// <summary>
    /// Relative or absolute path to the folder containing the client-side script file(s).
    /// </summary>
    /// <remarks>
    /// The actual JS files are placed in a folder named to correspond to the version of Web.UI being used, inside a folder named
    /// <b>componentart_webui_client</b>, which is placed in the folder specified by this property.
    /// </remarks>
    [Category("Support")]
    [DefaultValue("")]
    [Description("Relative or absolute path to the folder containing the client-side script file(s).")]
    public string ClientScriptLocation
    {
      get
      {
        object o = ViewState["ClientScriptLocation"]; 
        return (o == null) ? String.Empty : Utils.ConvertUrl(Context, string.Empty, (string)o); 
      }

      set
      {
        ViewState["ClientScriptLocation"] = value; 
      }
    }
    
    /// <summary>
    /// Specifies the level of client-side content that the control renders.
    /// </summary>
    /// <value>
    /// Gets or sets a value that allows you to override automatic detection of browser capabilities and to specify 
    /// how the control renders.  Default is Auto, indicating that the control will decide based on the client's 
    /// browser whether it is appropriate to serve it uplevel or downlevel content.
    /// </value>
    [DefaultValue(ClientTargetLevel.Auto)]
    [Description("Specifies the level of client-side content that the control renders.")]
    public ClientTargetLevel ClientTarget
    {
      get
      {
        return Utils.ParseClientTargetLevel(ViewState["ClientTarget"], ClientTargetLevel.Auto);
      }
      set
      {
        ViewState["ClientTarget"] = value;
      }
    }

    /// <summary>
    /// Whether this control considers the current browser down-level.
    /// </summary>
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
    [Browsable(false)]
    public bool IsDownLevelBrowser
    {
      get
      {
        if(Context != null)
        {
          return this.IsDownLevel();
        }
        else
          return false;
      }
    }

    /// <summary>
    /// Whether to render the search engine stamp.
    /// </summary>
    [Category("Support")]
    [DefaultValue(true)]
    [Description("Whether to render the search engine stamp.")]
    public bool RenderSearchEngineStamp
    {
      get 
      {
        object o = ViewState["RenderSearchEngineStamp"]; 
        return (o == null) ? true : (bool) o; 
      }
      set 
      {
        ViewState["RenderSearchEngineStamp"] = value;
      }
    }

    #endregion 

    #region Public Methods 

    /// <summary>
    /// IsLicensed method.
    /// </summary>
    /// <returns>Whether this control is licensed.</returns>
    public virtual bool IsLicensed()
    {
      try
      {
        License = LicenseManager.Validate(this.GetType(), this);
        return true; 
      }
      catch
      {
        return false; 
      }
    }

    #endregion 

    #region Protected Properties 

    protected System.ComponentModel.License License = null;

    #endregion 

    #region Protected Methods

    protected string GetSaneId()
    {
      if(this.ClientID == null || this.ClientID == "")
      {
        throw new Exception("An ID must be defined on the control.");
      }
      else
      {
        return this.ClientID.Replace("$", "_").Replace("{", "_").Replace("}", "_");
      }
    }

    protected bool IsBrowserSearchEngine()
    {
      if(Context == null || Context.Request == null)
        return false;

      string sUserAgent = Context.Request.UserAgent;
      if(sUserAgent == null)
      {
        return false;
      }

      return (
        sUserAgent.IndexOf("Googlebot") >= 0 ||
        sUserAgent.IndexOf("SideWinder") >= 0 ||
        sUserAgent.IndexOf("inktomi") >= 0 ||
        sUserAgent.IndexOf("ZyBorg") >= 0 ||
        sUserAgent.IndexOf("FAST-WebCrawler") >= 0 ||
        sUserAgent.IndexOf("Lycos") >= 0 ||
        sUserAgent.IndexOf("Scooter") >= 0 ||
        sUserAgent.IndexOf("NPBot") >= 0 ||
        sUserAgent.IndexOf("Gigabot") >= 0 ||
        sUserAgent.IndexOf("MSNBOT") >= 0 ||
        sUserAgent.IndexOf("SearchSpider") >= 0 ||
        sUserAgent.IndexOf("Vagabondo") >= 0 ||
        sUserAgent.IndexOf("almaden") >= 0 ||
        sUserAgent.IndexOf("CipinetBot") >= 0 ||
        sUserAgent.IndexOf("QuepasaCreep") >= 0 ||
        sUserAgent.IndexOf("Gaisbot") >= 0 ||
        sUserAgent.IndexOf("DoCoMo") >= 0 ||
        sUserAgent.IndexOf("grub-client") >= 0 ||
        sUserAgent.IndexOf("Openbot") >= 0 ||
        sUserAgent.IndexOf("Ask Jeeves") >= 0 ||
        sUserAgent.IndexOf("Girafabot") >= 0
        );
    }

    // Whether the control is running in design mode 
    protected bool IsRunningInDesignMode()
    { 
      return HttpContext.Current == null;
    }

    protected abstract bool IsDownLevel();

    protected virtual void ComponentArtPreRender(EventArgs e)
    {
    }
    
    protected abstract void ComponentArtRender(HtmlTextWriter output); 
    
    protected string GetResourceContent(string sFileName)
    {
      try
      {
        Stream oStream = Assembly.GetAssembly(this.GetType()).GetManifestResourceStream(sFileName);
        StreamReader oReader = new StreamReader(oStream);
  		
        return oReader.ReadToEnd();
      }
      catch(Exception ex)
      {
        throw new Exception("Could not read resource \"" + sFileName + "\": " + ex);
      }
    }
    
    

    protected void RenderCrawlerStamp(HtmlTextWriter output)
    {
      Assembly thisAssembly = Assembly.GetExecutingAssembly();
      string thisAssemblyVersion = thisAssembly.GetName().Version.ToString();
      string thisProductName = this.GetType().ToString().Replace("ComponentArt.Web.UI.", ""); 
      
      output.RenderBeginTag(HtmlTextWriterTag.Noscript);

      output.Write("ComponentArtSCStamp " + thisProductName + " " + thisAssemblyVersion);

      output.RenderEndTag(); // </noscript>
    }
    
    
    protected override void OnPreRender(EventArgs e)
    {
      base.OnPreRender(e);
      if (IsLicensed()) ComponentArtPreRender(e); 
    }
    
    protected override void Render(HtmlTextWriter output)
    {
      // Render demo warning if required 
      //if (!IsLicensed())
      //{
      //  RenderRedistributableWarning(output); 
      //  return; 
      //}
      
      // Render control 
      ComponentArtRender(output); 

      if(this.IsBrowserSearchEngine() && this.RenderSearchEngineStamp)
      {
        RenderCrawlerStamp(output);
      }
    }
    
    protected void RenderRedistributableWarning(HtmlTextWriter output)
    {
      output.Write("<div style=\"background-color:#3F3F3F;border:1px;border-style:solid;border-bottom-color:black;border-right-color:black;border-left-color:lightslategray;border-top-color:lightslategray;color:cornsilk;padding:2px;font-family:verdana;font-size:11px;\">");
      string productName = this.GetType().ToString().Replace("ComponentArt.Web.UI.", ""); 

      output.Write("<b>ComponentArt " + productName + "</b> :: ");
      output.Write("Unlicensed version. <br><br>"); 
      output.Write("This version is licensed for single application use only. <br><br>"); 
      output.Write("You can download the free trial version <a href=http://www.ComponentArt.com/ target=_blank><font color=silver>here</font></a>."); 
      output.Write("</div>"); 
    }
    
       
    protected void WriteGlobalClientScript(HtmlTextWriter output, string sDefaultPath, string sScriptFile)
    {
      string sScript = GenerateClientScriptBlock(sDefaultPath, sScriptFile);
		  string sInstanceId = sScriptFile;

      output.Write(sScript);
    }

    #endregion 

    #region Private Members

    

    internal bool IsInUpdatePanel()
    {
      for (Control oControl = this.Parent; oControl != null; oControl = oControl.Parent)
      {
        if (oControl.GetType().FullName == "Microsoft.Web.UI.UpdatePanel")
        {
          return true;
        }
      }

      return false;
    }

    private string GenerateClientScriptBlock(string sDefaultPath, string sScriptFile)
    {
      string sScript = string.Empty;
      string sScriptLocation = string.Empty;


      if(this.ClientScriptLocation != string.Empty)
      {
        string sVersionString =
          Assembly.GetExecutingAssembly().GetName().Version.Major.ToString() + "_" +
          Assembly.GetExecutingAssembly().GetName().Version.Minor.ToString() + "_" +
          Assembly.GetExecutingAssembly().GetName().Version.Build.ToString();
        sScriptLocation = Path.Combine(Path.Combine(this.ClientScriptLocation, sVersionString), sScriptFile).Replace("\\", "/");
			}


      if(sScriptLocation != string.Empty)
      {
        // Do we have a tilde?
        if(sScriptLocation.StartsWith("~") && Context != null && Context.Request != null)
        {
          string sAppPath = Context.Request.ApplicationPath;
          if(sAppPath.EndsWith("/"))
          {
            sAppPath = sAppPath.Substring(0, sAppPath.Length - 1);
          }

          sScriptLocation = sScriptLocation.Replace("~", sAppPath);
        }

        if(File.Exists(Context.Server.MapPath(sScriptLocation)))
        {
          sScript = "<script src=\"" + sScriptLocation + "\" type=\"text/javascript\"></script>";
        }
        else
        {
          throw new Exception(sScriptLocation + " not found");
        }
      }
      else 
      {
        // If everything failed, emit our internal script
        string sResourceUrl = Page.ClientScript.GetWebResourceUrl(this.GetType(), sDefaultPath + "." + sScriptFile);
        sResourceUrl = sResourceUrl.Replace("&", "&amp;");
        sScript = "<script src=\"" + sResourceUrl + "\" type=\"text/javascript\"></script>";

      }

      return sScript;
    }

    #endregion 
	}
	
  /// <summary>
  /// Specifies the level of client-side content that the control renders.
  /// </summary>
  public enum ClientTargetLevel
  {
    /// <summary>
    /// Automatically detect whether the browser should be served uplevel or downlevel content.
    /// </summary>
    Auto,

    /// <summary>
    /// Serve downlevel content.  This is typically appropriate for older and less advanced browsers.
    /// </summary>
    Downlevel,
    
    /// <summary>
    /// Serve uplevel content.  This is typically appropriate for newer and more advanced browsers.
    /// </summary>
    Uplevel    
  }

}



?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲福利一区二区| 丰满白嫩尤物一区二区| 国产麻豆欧美日韩一区| 91在线无精精品入口| 欧美一区二区三区小说| 一区二区三区日韩在线观看| 国产伦理精品不卡| 欧美一区二区三区的| 一区二区视频在线| 成人在线综合网| 精品999在线播放| 亚洲成年人影院| 日本精品一区二区三区四区的功能| 日韩欧美一区二区免费| 亚洲丶国产丶欧美一区二区三区| 不卡的av在线播放| 国产免费成人在线视频| 久久国产视频网| 欧美巨大另类极品videosbest | 国产精品1区2区3区在线观看| 欧美亚洲一区二区三区四区| 中文字幕在线一区| 丰满放荡岳乱妇91ww| 国产色产综合产在线视频| 麻豆91在线观看| 欧美人狂配大交3d怪物一区| 亚洲一区av在线| 欧美婷婷六月丁香综合色| 综合电影一区二区三区| 成人黄色电影在线| 欧美国产一区二区| 成人免费av在线| 国产精品色噜噜| www.色综合.com| 亚洲图片你懂的| 91丝袜国产在线播放| 亚洲精品综合在线| 欧美三级日本三级少妇99| 亚洲一区二区中文在线| 欧美区一区二区三区| 日韩精品三区四区| 精品剧情v国产在线观看在线| 久久精品国产精品亚洲综合| 久久久噜噜噜久噜久久综合| 成人av手机在线观看| 亚洲欧美日韩国产成人精品影院 | 国产大片一区二区| 国产精品色婷婷| 欧美亚洲国产一区二区三区va| 亚洲国产色一区| 欧美xxxxx牲另类人与| 国产精品18久久久久久vr| 国产精品毛片久久久久久久| 91香蕉国产在线观看软件| 亚洲在线成人精品| 精品少妇一区二区三区免费观看 | 国产精品情趣视频| 色综合色综合色综合色综合色综合 | 91.成人天堂一区| 精品一二三四区| 亚洲三级免费电影| 欧美一区二区三区系列电影| 国产成人在线视频免费播放| 亚洲永久免费视频| 精品国产区一区| 色婷婷香蕉在线一区二区| 免费人成网站在线观看欧美高清| 国产欧美va欧美不卡在线| 欧美亚洲日本国产| 国产福利电影一区二区三区| 亚洲国产欧美一区二区三区丁香婷| 欧美一区二区福利视频| www.激情成人| 精品一区二区久久| 夜夜揉揉日日人人青青一国产精品 | 中文字幕av在线一区二区三区| 在线精品视频免费观看| 韩国v欧美v亚洲v日本v| 亚洲网友自拍偷拍| 国产精品三级久久久久三级| 91精品国产色综合久久ai换脸| 国产iv一区二区三区| 日韩电影一区二区三区四区| 中文字幕在线播放不卡一区| 精品盗摄一区二区三区| 欧美性videosxxxxx| 成人黄色在线网站| 国产一区二区在线免费观看| 日日摸夜夜添夜夜添亚洲女人| 国产精品久久精品日日| 久久综合色天天久久综合图片| 欧美日韩国产首页在线观看| 91麻豆国产福利精品| 成人蜜臀av电影| 国产精品一二二区| 久88久久88久久久| 日韩精品亚洲专区| 午夜精品福利一区二区三区蜜桃| 中文字幕一区二区三区av| 精品不卡在线视频| 日韩一区二区中文字幕| 欧美性高清videossexo| 99re这里都是精品| 国产成人高清在线| 国产麻豆午夜三级精品| 久久精品国产久精国产爱| 日本人妖一区二区| 日本美女视频一区二区| 日日摸夜夜添夜夜添精品视频| 夜夜嗨av一区二区三区四季av| 国产精品麻豆一区二区| 中文字幕不卡的av| 中文字幕在线观看不卡视频| 国产精品理论在线观看| 国产精品免费视频网站| 国产精品美女久久久久久久| 欧美国产欧美综合| 成人欧美一区二区三区| 亚洲欧洲日韩在线| 亚洲欧洲韩国日本视频| 成人免费一区二区三区视频| 国产精品人成在线观看免费| 日韩美女久久久| 亚洲女同一区二区| 亚洲一区在线视频| 三级欧美韩日大片在线看| 日本91福利区| 精品一区二区三区av| 国产精品一级片| 97精品视频在线观看自产线路二| 色综合久久久网| 精品视频123区在线观看| 91精品福利在线一区二区三区| 日韩欧美国产一二三区| 国产视频一区二区在线| 亚洲色图另类专区| 午夜视频在线观看一区| 日韩av电影免费观看高清完整版| 黄色资源网久久资源365| 国产成人免费在线视频| 色狠狠综合天天综合综合| 欧美午夜不卡视频| 精品国产一区二区三区久久久蜜月 | 精品视频色一区| 久久综合久久综合久久综合| 中文字幕一区二区三区在线不卡| 亚洲福利视频三区| 国产精品一区三区| 欧美自拍偷拍一区| wwww国产精品欧美| 亚洲欧美韩国综合色| 麻豆视频观看网址久久| 94色蜜桃网一区二区三区| 欧美一区二区三区婷婷月色| 国产精品女同一区二区三区| 日韩av午夜在线观看| 99精品欧美一区二区蜜桃免费| 欧美日韩在线三级| 欧美极品少妇xxxxⅹ高跟鞋| 亚洲综合色成人| 国产.欧美.日韩| 欧美乱熟臀69xxxxxx| 国产精品久久久久影视| 免费人成精品欧美精品| 色欧美88888久久久久久影院| 精品国产乱码久久久久久免费| 亚洲精品日韩专区silk| 国产精品1区2区3区| 欧美福利视频一区| 亚洲免费色视频| 国产精品一品二品| 日韩欧美综合在线| 亚洲国产日韩a在线播放| 波多野结衣亚洲一区| 日韩一卡二卡三卡四卡| 亚洲精品日韩专区silk| 不卡一区二区中文字幕| 精品欧美一区二区久久 | 亚洲视频一区在线| 国产伦精一区二区三区| 欧美猛男超大videosgay| 亚洲欧美日韩中文播放| 粉嫩aⅴ一区二区三区四区| 日韩天堂在线观看| 日韩中文字幕1| 欧美色区777第一页| 一区二区三区中文在线观看| proumb性欧美在线观看| 久久久777精品电影网影网 | 国产综合色视频| 精品盗摄一区二区三区| 久久精品国产久精国产| 欧美大片在线观看一区| 日本一不卡视频| 日韩欧美久久一区| 男人的j进女人的j一区| 51精品国自产在线| 青青草国产精品97视觉盛宴| 欧美放荡的少妇| 日本欧美大码aⅴ在线播放|