NeatUpload Documentation

ProgressBar.RegisterOnSubmitStatement Method 

Registers an OnSubmit statement to ensure that this ProgressBar will start when the page is submitted.

public void RegisterOnSubmitStatement(
   object source,
   EventArgs e
);

Parameters

source
Ignored
e
Ignored

Remarks

You only need to call this method if your page has EnableViewViewState=false. In that case, you should call this method after all PreRender handlers have been called, but before Page.Render() has been called. In .NET 2.0, that can be achieved by adding this as a PreRenderComplete handler for your page:

PreRenderComplete += new System.EventHandler(progressBar.RegisterOnSubmitStatement);
In .NET 1.1, you can override your Page's OnPreRender() method, like this:
protected override void OnPreRender(EventArgs e)
{
    base.OnPreRender(e);
    progressBar.RegisterOnSubmitStatement(null, null);
}

See Also

ProgressBar Class | Brettle.Web.NeatUpload Namespace