Glossary Item Box

Overview: Overview

Client-side API: Button client side API

See Also AspLib component library Send comments on this topic.

Button

Advanced button has ability to customize image and text properties. 

 

Features:

 

 Button view sample:

 You can set one from 17 pre-defined button kinds (using Kind property). Kind property defines image and text of a button. For example, on the picture  on the top there is a button of a "Save" kind.

Button control has next predefined kinds: add, back, cancel, clone, close, delete, edit, forward, help, home, new, ok, refresh, save, save and close, search, up.

 If you want the user to work with single click button set SingleClickButton = true

 

You can show one or two message boxes to let user confirm his choice.

For that you should set ConfirmMessage and SecondConfirmMessage. For example you can use it in the following case:

 Code:

<al:button id="Button1" runat="server" Kind="Delete" ConfirmMessage="Are you sure that you want to delete this item?" SecondConfirmMessage="Item will be deleted permanently! Are you sure want to do it?"></al:button>

 Behavior:

  1. User click on delete button somewhere on the page.
  2. Message box appears: "Are you sure that you want to delete this item?".
  3. User confirms his choice.
  4. Then second message box appears "Item will be deleted permanently! Are you sure want to do it?".
  5. Click event happens (only after second confirmation).

 

Gray scale image

Control may use GrayScale filter for drawing image - when mouse cursor over button it draws full-colored image, when mouse cursor out - button draws gray scale image (property ).

Default button view with GrayScaleImage = true:

Button when mouse over:

 

Windows look and feel

You may set such properties of button, as border and background colors, but you may set look and feel of button to default Windows button.

Button appearance:

To set appearance of button to this - call AutoFormat dialog for Button in VS designer - and select WindowsDefault theme:

Overview: Overview

Client-side API: Button client side API

 

 


© 2002-2007 Astron Digital. All Rights Reserved.