expandata.net Class Library
DNUpFilesProgressBE Class
See Also  Example  Members
Collapse All Language:    C#     VB.NET
This class provides methods and properties to calculate the progress of an upload.

Namespace: expandata.net
Assembly: expandata.net.dll

Syntax

C#
public class DNUpFilesProgressBE

VB.NET
dim dNUpFilesProgressBE AS new DNUpFilesProgressBE()

Remarks

A server-side progress indicator included with UpFilesBE allows us to monitor, log and display the progress of an upload The progress monitor monitors the whole upload. As a result an individual file within the upload cannot be watched.The name of the file being uploaded currently is ,however, available as the CurrentFile property of this instance of this class. The progress monitoring is dependent on the UpFilesBEModule, the UpFilesBE HTTPModule, used for ASP.NET.

To create an instance of DNUpFilesProgressBE in an ASP.NET page, use:

In C#:
DNUpFilesProgressBE dNUpFilesProgressBE = new DNUpFilesProgressBE();

In VB.NET:
Dim dNUpFilesProgressBE As New DNUpFilesProgressBE()


Example

C# Copy Code

// get ProgressId from QueryString 
string pid = Request.QueryString["ProgressId"];

// Create a new DNUpFilesProgressBE object
DNUpFilesProgressBE dNUpFilesProgressBE = new DNUpFilesProgressBE();

// set ProgressId
dNUpFilesProgressBE.ProgressId = pid;

// start monitoring
dNUpFilesProgressBE.Monitor = true;

Response.Write(dNUpFilesProgressBE.Percentage);

VB.NET Copy Code

'// get ProgressId from QueryString 
string pid = Request.QueryString("ProgressId")

'// Create a new DNUpFilesProgressBE object
dim dNUpFilesProgressBE as new DNUpFilesProgressBE()

'// set ProgressId
dNUpFilesProgressBE.ProgressId = pid

'// start monitoring
dNUpFilesProgressBE.Monitor = true

Response.Write(dNUpFilesProgressBE.Percentage)
See Also
 
Send comments about this topic to expandata.net Inc.


Copyright © 2007 expandata Inc. All rights reserved.