/// <summary> /// Raises the <see cref="E:System.Web.UI.Control.Init"/> event. /// </summary> /// <param name="e">An <see cref="T:System.EventArgs"/> object that contains the event data.</param> protected override void OnInit(EventArgs e) { base.OnInit(e); _status = UploadManager.Instance.Status; UploadManager.Instance.Status = null; }
/// <summary> /// Raises the <see cref="E:System.Web.UI.Control.Init"/> event. /// </summary> /// <param name="e">An <see cref="T:System.EventArgs"/> object that contains the event data.</param> protected override void OnInit(EventArgs e) { base.OnInit(e); if (String.IsNullOrEmpty(ImagePath)) { ImagePath = DEFAULT_IMAGE_PATH; } ImagePath = ImagePath.TrimEnd('/') + "/"; if (String.IsNullOrEmpty(CSSPath)) { CSSPath = DEFAULT_CSS_PATH; } CSSPath = CSSPath.TrimEnd('/') + "/"; if (String.IsNullOrEmpty(ScriptPath)) { ScriptPath = DEFAULT_JS_PATH; } ScriptPath = ScriptPath.TrimEnd('/') + "/"; _status = UploadManager.Instance.Status; UploadManager.Instance.Status = null; }
/// <summary> /// Sets the upload status. /// </summary> /// <param name="status">Status to set.</param> /// <param name="key">Upload key.</param> internal void SetStatus(UploadStatus status, string key) { HttpContext.Current.Application[STATUS_KEY + key] = status; }
/// <summary> /// Initialises the upload status which is held as an application /// variable using a unique key. /// </summary> /// <param name="length">The content length.</param> void InitStatus(long length) { _status = new UploadStatus(length); }