Click here to Skip to main content
Click here to Skip to main content
Alternative Tip/Trick

Tagged as

Disable Label after some amount of time

, 8 Feb 2012 CPOL
Rate this:
Please Sign up or sign in to vote.
Achieve the same using AJAX AnimationExtender control. Use the below code: ...
Achieve the same using AJAX AnimationExtender control.
 
Use the below code:
 
<asp:updatepanel id="upnl" runat="server" xmlns:asp="#unknown">
    <contenttemplate>
         <asp:label id="lbl" runat="server" cssclass="fadeLabel"></asp:label>
    </contenttemplate>
</asp:updatepanel>
 
<asp:updatepanelanimationextender id="upax" runat="server" behaviorid="animation" targetcontrolid="upnl" xmlns:asp="#unknown">
    <animations>
        <onupdated>  
            <sequence>  
                <ScriptAction Script="fadeOut()" />
            </sequence>  
        </onupdated>   
    </animations>  
</asp:updatepanelanimationextender>
 
in your code behind.
lbl.Text = "Assign Text";
upnl.Update();
 
Fadeout method:
function BannerOut() {
    $(".fadeLabel").fadeOut(1000);
}
 
Thanks
--RA

License

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

Share

About the Author

Rajesh Anuhya
Software Developer (Senior)
India India
No Biography provided

Comments and Discussions

 
GeneralThanks Deeksha --RA PinmemberRajesh Anuhya8-Feb-12 19:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150129.1 | Last Updated 8 Feb 2012
Article Copyright 2012 by Rajesh Anuhya
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid