expandata.net Class Library
DNUpFilesAJAXProgressBE Class
See Also  Example  Members
Collapse All Language:    C#     VB.NET
This Web Server Control class provides methods and properties to acquire and display the Progress of an Upload using AJAX-based Client/Server communication technology.

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

Syntax

C#
public class DNUpFilesAJAXProgressBE

VB.NET
dim dNUpFilesAJAXProgressBE AS new DNUpFilesAJAXProgressBE()

Remarks

Use the DNUpFilesAJAXProgressBE control to display Progress of an upload in a set location on the page. You can customize the displayed progress attributes and features through various properties of the Control.


Example

C# Copy Code


protected void Page_Load(object sender, System.EventArgs e)
{
    // DNUpFilesAJAXProgressBE1 control has been placed in the Web Page
    // In the following we Register the Control for AJAX and set some of it's properties

    // RegisterForAjax();
    this.DNUpFilesAJAXProgressBE1.RegisterForAjax();
    // httpApplicationState
    this.DNUpFilesAJAXProgressBE1.httpApplicationState = this.Page.Application;
    // VRoot
    this.DNUpFilesAJAXProgressBE1.VRoot = (string)Application["vroot"];
 }


// On the ButtonApply_Click event we set some more properties of 
//  DNUpFilesAJAXProgressBE1 control
protected void ButtonApply_Click(object sender, EventArgs e)
{
	this.DNUpFilesAJAXProgressBE1.ShowTotalProgressBar = 
	this.CheckBoxShowProgressBar.Checked;
	this.DNUpFilesAJAXProgressBE1.ShowTotalProgressData = 
	this.CheckBoxShowProgressBarData.Checked;
	this.DNUpFilesAJAXProgressBE1.ShowCurrentFileName = 
	this.CheckBoxShowCurrentFileName.Checked;
	this.DNUpFilesAJAXProgressBE1.ShowTimerData = 
	this.CheckBoxShowTimerData.Checked;
	this.DNUpFilesAJAXProgressBE1.ShowProgressStatus = 
	this.CheckBoxShowProgessStatus.Checked;
	this.DNUpFilesAJAXProgressBE1.ShowCancelButton = 
	this.CheckBoxShowCancelButton.Checked;
	this.DNUpFilesAJAXProgressBE1.Language = 
	this.DropDownListLanguage.SelectedValue;
	this.DNUpFilesAJAXProgressBE1.Skin = 
	this.DropDownListSkin.SelectedValue;
}


VB.NET Copy Code


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        '// DNUpFilesAJAXProgressBE1 control has been placed in the Web Page
        '// In the following we Register the Control for AJAX and set some of it's properties

        '// RegisterForAjax();
        DNUpFilesAJAXProgressBE1.RegisterForAjax()
        '// httpApplicationState
        DNUpFilesAJAXProgressBE1.httpApplicationState = Page.Application
        '// VRoot
        DNUpFilesAJAXProgressBE1.VRoot = Application("vroot")

    End Sub

'// On the ButtonApply_Click event we set some more properties of 
'//  DNUpFilesAJAXProgressBE1 control

    Protected Sub ButtonApply_Click(ByVal sender As Object, ByVal e As System.EventArgs) 
    Handles ButtonApply.Click

        DNUpFilesAJAXProgressBE1.ShowTotalProgressBar = 
        CheckBoxShowProgressBar.Checked
        DNUpFilesAJAXProgressBE1.ShowTotalProgressData = 
        CheckBoxShowProgressBarData.Checked
        DNUpFilesAJAXProgressBE1.ShowCurrentFileName = 
        CheckBoxShowCurrentFileName.Checked
        DNUpFilesAJAXProgressBE1.ShowTimerData = 
        CheckBoxShowTimerData.Checked
        DNUpFilesAJAXProgressBE1.ShowProgressStatus = 
        CheckBoxShowProgessStatus.Checked
        DNUpFilesAJAXProgressBE1.ShowCancelButton = 
        CheckBoxShowCancelButton.Checked
        DNUpFilesAJAXProgressBE1.Language = 
        DropDownListLanguage.SelectedValue
        DNUpFilesAJAXProgressBE1.Skin = 
        DropDownListSkin.SelectedValue

    End Sub

See Also
 
Send comments about this topic to expandata.net Inc.


Copyright © 2007 expandata Inc. All rights reserved.