Click here to Skip to main content
12,635,428 members (25,139 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

4.3K views
Posted

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

You may also be interested in...

Pro
Pro

Comments and Discussions

 
GeneralThanks Deeksha --RA Pin
Rajesh Anuhya8-Feb-12 19:42
memberRajesh Anuhya8-Feb-12 19:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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
Web02 | 2.8.161208.2 | Last Updated 8 Feb 2012
Article Copyright 2012 by Rajesh Anuhya
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid