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 9219401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:06:35+00:00 2026-06-18T03:06:35+00:00

I am Working in ASP.NET and C#. In my Application i have a registration

  • 0

I am Working in ASP.NET and C#.

In my Application i have a registration form in which there is a label which shows the success and failure of the registration.The text for that label is from codebehind based on the condition.Now what i need is to hide the label after sometime (say 5sec) on clicking the submit button.I have tried this using javascript but its not working properly.please let me know whats the mistake or give ur sugessions.

Script:

    function HideLabel() {
        document.getElementById('<%= lbl1.ClientID %>').style.display = "none";
    }
    setTimeout("HideLabel();", 5000);
  • 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-06-18T03:06:36+00:00Added an answer on June 18, 2026 at 3:06 am

    You have wrong syntax of setTimout. You have to pass name of function, remove the quotes and also pass name not call the function. One more thing to take care is to put the code just before the closing body tag to ensure the availability of html elements.

    Change

    setTimeout("HideLabel();", 5000);  
    

    To

    setTimeout(HideLabel, 5000);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a asp.net application which is working from last 2-3 years, it has
I am working on asp.net 3 application. I have a view which is report
I'm working on an asp.net MVC application. I have a class that wraps a
I am working on ASP.Net shopping card application in which I have a product
I'm working on an ASP.net web application. I have a form with a submit
I am working on asp.net MVC3 application and I have created a layout.cshtml which
I am working on an application which has a registration form and I have
I am working on asp.net application and I have generated entity model (edmx) from
I am working on asp.net application and I have an update panel like this:
I have an ASP.NET application I am working on. One of the requirements of

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.