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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:55:04+00:00 2026-05-16T23:55:04+00:00

i am trying to figure out how to display message box after it done

  • 0

i am trying to figure out how to display message box after it done executing the server side code

here is the code which works from the client side but still looking for a way to make it work from code-behind

.aspx

<div id="status"></div> 

script:

$("#status").fadeTo(500, 1, function() { $(this).html("You are now registered!").fadeTo(7000, 0); })
  • 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-16T23:55:05+00:00Added an answer on May 16, 2026 at 11:55 pm

    Not sure why you are fading the status div twice.

    I get it now. You are trying to show the div and then fade it away. Try this:

    $("#status").html("You are now registered!").show().fadeTo(7000, 0);
    

    Or you could use fadeIn and fadeOut to make them both fade, like this:

    $("#status").html("You are now registered!").fadeIn(500).fadeOut(7000);
    

    SERVER SIDE

    To do it on the server side you would use the RegisterClientScriptBlock method of the ScriptManager class like so:

    ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "clientScript", "$(function() { $('#status').html('You are now registered!').fadeIn(500).fadeOut(7000); });", True)
    

    The first parameter would be the page you are using it on. Then the type, which you can use me.GetType() to get, then a name for the method which isn’t really important what you call it, and then the actual jQuery code. The last parameter is a boolean as to whether to include script tags or not. If you put them in the jquery code, set it to false, otherwise keep it true.

    Also, you may need a ScriptManager control between the form tags on the page you use this on. And this was done using VB code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's something I'm trying to figure out concerning display objects in ActionScript3 / Flex.
I'm trying to figure out how to display the repeated letter in a string.
I'm trying to figure out the best way to display a long list of
I'm trying to figure out the best approach to display combined tables based on
Trying to figure out which to use.
Trying to figure out this pseudo code. The following is assumed.... I can only
I've searched online for awhile trying to figure out how to dynamically display a
I am trying to figure out a way to get h:messages to display with
I am trying to figure out how to notify the user which field failed
Hey, I'm trying to figure out how to display the ▼ character properly in

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.