Click here to Skip to main content
11,804,008 members (79,760 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# C#4.0 jQuery
How to make a label disappear after a certain length of time?Using c# or Jquery.
Posted 10-Jul-13 10:34am
ThePhantomUpvoter at 10-Jul-13 16:37pm
Using some form of a timer?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

This can be conveniently done by a combination of jQuery .hide() and .delay():[^],[^].

See also, just in case:[^] Smile | :) .

Espen Harlinn at 10-Jul-13 16:47pm
Nice links - 5'ed! :-D
Sergey Alexandrovich Kryukov at 10-Jul-13 16:47pm
Thank you, Espen.
prasy123 at 11-Jul-13 12:24pm
Hi SA ,

The Jquery links which you provided gave me some idea to figured out a solution for my question.

Sergey Alexandrovich Kryukov at 11-Jul-13 13:54pm
Great; you are very welcome.
Good luck, call again.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

I figured out one solution :

In Code Behind:

Protected Sub Gridview1_RowDeleting(sender As Object, e As GridViewDeleteEventArgs)
        lbldeletemsg.Visible = True
        lbldeletemsg.Text = "DATA DELETED •"
        ScriptManager.RegisterStartupScript(Me.Page, Me.[GetType](), "KeyToIdentifyfadeoutScript", "Fadeout();", True)
    End Sub

In aspx page:
<script type="text/javascript" src="scripts/jquery-1.4.1.min.js">
function Fadeout() {
function Fadeout() {

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

  Print Answers RSS
0 OriginalGriff 410
1 CPallini 310
2 Sergey Alexandrovich Kryukov 234
3 CHill60 230
4 Suvendu Shekhar Giri 200
0 OriginalGriff 3,140
1 Maciej Los 1,910
2 KrunalRohit 1,907
3 CPallini 1,845
4 Richard MacCutchan 1,187

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 11 Jul 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100