Click here to Skip to main content
13,055,083 members (63,864 online)
Rate this:
Please Sign up or sign in to vote.
See more:
How to make a label disappear after a certain length of time?Using c# or Jquery.
Posted 10-Jul-13 10:34am
ThePhantomUpvoter 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:[^] :-).

Espen Harlinn 10-Jul-13 16:47pm
Nice links - 5'ed! :-D
Sergey Alexandrovich Kryukov 10-Jul-13 16:47pm
Thank you, Espen.
prasy123 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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 11 Jul 2013
Copyright © CodeProject, 1999-2017
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