Click here to Skip to main content
Sign Up to vote bad
good
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 24 Jun '12 - 3:42
Edited 24 Jun '12 - 3:47


2 solutions

If you need to show Text on BalloonPopup, you need to set BalloonPopupControlID (The ID of the control to display.)
 
sample:
 
<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
 
<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>
  Permalink  
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.
 
http://tuvianblog.com/2012/09/25/how-to-implement-balloonpopupextender-in-asp-netc-or-ballon-popup-extender-sample-in-asp-netc/[^]
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 8,376
1 OriginalGriff 6,571
2 CPallini 3,533
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 25 Sep 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid