Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
2.50/5 (4 votes)
See more:
i have a txt_Search
and attached a BalloonPopupExtender(ajax control) to this tct search
i want whern click on the txt_search show a balloon with this text:
"SEARCH"
in propery of this ajax control is Animations
but a dont know how insert text on this property to show in balloon when click on the text
TxtSearch_BalloonPopupExtender.Animations = ?????????
Posted
Updated 24-Jun-12 3:47am
v2

If you need to show Text on BalloonPopup, you need to set BalloonPopupControlID (The ID of the control to display.)

sample:

XML
<form id="form1" runat="server">
<div>
<center>
    <Ajax:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </Ajax:ToolkitScriptManager>

<i>TextBox:</i> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</center>
    <asp:Panel ID="Panel1" runat="server">
     <b>SEARCH</b>
    </asp:Panel>
<div>
    <Ajax:BalloonPopupExtender ID="BalloonPopupExtender1" runat="server" BalloonPopupControlID="Panel1" BalloonSize="Small"BalloonStyle="Cloud" UseShadow="true" DisplayOnClick="true" DisplayOnFocus="false" DisplayOnMouseOver="true" TargetControlID="TextBox1"Position="BottomRight">
    </Ajax:BalloonPopupExtender>
</div>
</div>

</form>



[^]

If you need to show animation on model popup add animation tag inside the popup as

XML
<ajaxToolkit:PopupControlExtender ID="PopupControlExtender2" runat="server"
    TargetControlID="Label12" PopupControlID="popPanel"
    BehaviorID="PopupBehavior" Position="top" OffsetX="-10" OffsetY="-40" >
    <Animations>
        <OnShow>
            <Sequence>
                <HideAction Visible="true" />
                <FadeIn Duration=".5" Fps="20" />
                <Color Duration=".2" PropertyKey="color" StartValue="#FFFFFF" EndValue="#FF0000" />
            </Sequence>
        </OnShow>
        <OnHide>
          <FadeOut Duration=".5" Fps="20" />
        </OnHide>
    </Animations>
</ajaxToolkit:PopupControlExtender>
 
Share this answer
 
v2
You can see a very simple example for Balloon POPUP Extender in AJAX in the below mentioned link. They already discussed all possible ways of implementing Balloon POPUP Extender in ASP.Net.

You can download demo project from here.

How to implement BalloonPopupExtender in ASP.Net/C# OR Ballon Popup Extender Sample in ASP.Net/C#[^]

[Edit]
Link Text Added.
[/Edit]
 
Share this answer
 
v2
Here is the link from the official ajax toolkit website
it shows how to implement balloon popup controller

http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/BalloonPopup/BalloonPopupExtender.aspx[^]

But before that make sure that you drag and place the ToolScriptManager in your page and also refer the ajax in the top of your page like this.

VB
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
TagPrefix="ajax" %>



Hope it helps.
 
Share this answer
 
Comments
ErBhati 14-Feb-14 9:20am    
this control cannot be displayed because its tagprefix is not registered in this web form

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900