ASP. NET progress bar control (real-time) (2)

Source: Internet
Author: User

ASP. NET progress bar Control(2)

 Antardev progressbar progress bar Control 1.0 Beta Release

Control name: Progressbar

Control Type: Asp. net2.0Server Control

Open Sending By: Bingdian3721@gmail.com

Namespace: Antardev

Class Name Name: Progressbar

Current version:0.2.2. 0

Description: BenProgramIt can only be used for learning and testing purposes. Do not use it for commercial purposes.

 

Use this controlXMLHTTPThe component sends real-time data to the browser-side asynchronous request progress barHTTP ModuleQuick response does not cause the user to easily lose the response or block the response because of high load operations. You can adjust the progress bar according to different use cases to display the real-time progress.

Compared with previous versions, there are many improvements.

1.Automatic ConfigurationWeb. config, No need to manually addHTTPModule reference.

2.Added the percentage attribute to facilitate progress setting.

3.Included with the released assemblyXMLAnnotations can effectively use smart sensing for convenienceCodeWrite.

4.Changed the design of setting progress bar attributes using static methods in the past, and addedProgressbarcontrollerControl class. You can easily connect to the progress bar and set the progress.

5.Use the unique identifier of the progress bar between the progress bar page and the method for setting the progress barSnCommunication, as long as you have masteredSnYou can useProgressbarcontrollerClass to connect to the progress bar.

6.AddedBeginMethod.

7.Fixed a few bugs.Bug.

Note::
In use at the same timePagevisitTo enable a work levelSession.

 

Basic Type

Public Enum progressbarworklevel used to declare the control's working level

value

description

application

the instance of the control is used at the application level. The user accessing the progress bar shares a progress bar instance.

pagevisit

the instance of the control is used at the page access level. each user has an exclusive progress bar instance.

 

ProgressbarControl property list

Name

Description

Default Value

Autobegin

Whether the progress bar starts automatically

False

Autohidden

The progress bar is automatically hidden. It is automatically hidden before start and after completion, and only displayed during progress.

False

Backcolor

Background Color

Gainsboro

Backimage

Progress Bar background image (prior to background color)

 

Beginfromzero

The initial value of the progress bar on the browser is 0, which is not affected by the value during design.

True

Bordercolor

Progress bar border color

Gray

Borderwidth

Progress bar Border Width

1px

Forecolor

Foreground

Royalblue

Foreimage

Progress bar foreground image (prior to foreground)

 

Fullautocomplete

Stop the change after the progress bar is completed, and trigger the oncomplete event script

False

Height

Height (the text height indicated by the progress bar is not included)

20px

Interval

Progress bar update interval, in milliseconds

1000

Maximum

Upper limit of the range used by the progress bar

100

Minimum

The lower limit of the range used by the progress bar

0

Oncomplete

Javascript executed after the progress bar stops changing

 

Onerror

Javascript executed when an error occurs in the progress bar. The error here refers to a communication error.

 

Percentage

Current percentage

0

Sn

The unique identifier of the progress bar [ID when the job is in application mode]

 

Text

Prompt text displayed above the progress bar

 

Textalign

Prompt text alignment

Horizontalalign. notset

Textcolor

Text color

Black

Value

Current Value

0

Width

Width

400px

Worklevel

Progress bar work level

Progressbarworklevel. pagevisit

 

ProgressbarcontrollerClass:
Progress bar control class that allows you to connect to a running progress bar and operate on it

Constructor

PublicProgressbarcontroller (StringSN)
Function:Initialize a new instance of progressbarcontroller
Parameters:Unique Identifier of the progress bar

Attribute list

Name

Description

Value

Obtains or sets the current progress bar value.

Text

Obtains or sets the text displayed on the progress bar.

Percentage

Get or set progress percentage(Greater than or equal0And less than or equal1)

Maximum

Obtain the upper limit of the range used by the progress bar.

Minimum

Obtains the lower limit of the range used by the progress bar.

 

Method list

Name

Description

End

End the lifecycle of a progress bar,And destroy relevant data

 

Example:

Antardev.ProgressbarcontrollerNPC =NewAntardev.Progressbarcontroller("Sn");

NPC. Value + = 1;

NPC. Percentage = 0.20;

NPC. Text ="Current Progress 20%";

 

Where"Sn"This string should be passed in actual useProgressbarOfSnAttribute here.

 

 

Controls:Http://www.antardev.cn/ProgressBar0.2.2.0.rar

Test Program address:Http://www.antardev.cn/TW0.2.2.0.rar

Note: earlier versions do not support downloading. If you have special requirements, contact me directly.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.