Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 419197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:45:13+00:00 2026-05-12T18:45:13+00:00

I have in here an old web application written in ASP.Net 2.0 + AJAX.

  • 0

I have in here an old web application written in ASP.Net 2.0 + AJAX.

I have in my page a textbox control and a button and a label control which is inside an update panel.

A text will be entered into the textbox and subsequently, on the textchanged event of the control, some server side processing and data validations are involved.

I am using the label control as a display to inform the user of the progress of the validation. Different messages may appear at the label control.

In the current scenario, only the last string specified for the label control is displayed on the label control.

I am looking for ways on how to be able to display different text on the label control, say at interval of 5 seconds.

Is there an AJAX Control there for this (or something similar which I could use), where I could specify the text to be displayed at n interval of seconds?

How do I achieve this? Inputs highly appreciated. Thanks.

Edited
I think I may need to re-phrase this question to make it simpler.

After an asp.net page post back, how would I be able to specify different text string in a label control which should display after every n seconds?

Like

Label1.Text = “Message 1”

.. Delay 5 seconds

Label1.Text = “Next Message”

.. Delay 5 seconds

Label1.Text = “Another Message”

.. Delay 5 seconds

Label1.Text = “Last Message”

In the current post back model (which includes AJAX UpdatePanel), only the last message is displayed.

Kindly advise. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T18:45:14+00:00Added an answer on May 12, 2026 at 6:45 pm

    If the label control is contained in the update panel, then call your code using a System.Timers.Timer

    Dim WithEvents timer As New System.Timers.Timer()
    Dim msgStack As Stack(Of String) = Nothing
    
    Sub DisplayMsg(ByVal msg() As String, ByVal interval As Integer)
        msgStack = New Stack(Of String)
        For i As Integer = 0 To msg.Length - 1
            msgStack.Push(msg(i))
        Next
    
        timer.Interval = interval
        timer.AutoReset = True
        timer.Start()
    End Sub
    
    Private Sub timer_Elapsed(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs) Handles timer.Elapsed
        If msgStack.Count > 0 Then
            Label1.Text = msgStack.Pop()
        Else
            timer.Stop()
        End If
    End Sub
    

    Order your message input list last status message to first status message

    Sub DoOperation()
        DisplayMsg(New String() {"LastMessage", "Second Message", "First Message"}, 5000)
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.