Ajax Control Toolkit use instance (3) balloonpopup

Source: Internet
Author: User

For details about the Ajax Control Toolkit toolkit and how to obtain it, see another article in this series: Ajax Control Toolkit example (1) autocompleteextender.

Introduction to the balloonpopup Control

The balloonpopup control displays a pop-up layer, which can contain a lot of content. For example, when you move the mouse over a text box, you can use this control to display some help information.

The balloonpopup control supports three types of styles: balloon, rectangle, and custom styles ). There are also three types of pop-up layers: Small (small), medium (medium), and large (large ). If you set the balloonstyle attribute to custom, you need to set the customcssurl attribute value to the path of the custom style table.

Balloonpopup control usage

1. Add to the pageToolkitscriptmanagerControl, used to register the scripts required by the control to the page;

<Ajaxtoolkit: toolkitscriptmanager ID= "Toolkitscriptmanager1" Runat= "Server">

</Ajaxtoolkit: toolkitscriptmanager>

2. AddPanelThe widget acts as a container to hold the prompt content;

<ASP: Panel Runat= "Server" ID= "Messagepanel">

Let me tell you a joke ~~<ASP: Image Runat= "Server" Imageurl= "~ /Images/smile. GIF" Imagealign= "Absmiddle" />

</ASP: Panel>

3. AddBalloonpopupextenderControls, custom styles, binding target controls, and prompt information containers;

<Ajaxtoolkit: balloonpopupextender Runat= "Server" ID= "Balloonpopupextender1"

Position= "Topleft"

Targetcontrolid= "Image2"

Balloonpopupcontrolid= "Panel1"

Balloonsize= "Small"

Balloonstyle= "Cloud"

Displayonmouseover= "True" />

4. Run the page and you will see the following results:

For more information, see the Ajax Control Toolkit sample site.

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.