コード例 #1
0
ファイル: UploadController.cs プロジェクト: afrog33k/eAd
    /// <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;
    }
コード例 #2
0
ファイル: DJUploadController.cs プロジェクト: afrog33k/eAd
    /// <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;
    }
コード例 #3
0
ファイル: UploadManager.cs プロジェクト: afrog33k/eAd
     /// <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;
 }
コード例 #4
0
ファイル: UploadModule.cs プロジェクト: afrog33k/eAd
 /// <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);
 }