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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:56:08+00:00 2026-06-08T13:56:08+00:00

I have button <UpdatePanel> <asp:Button CssClass=btn-send runat=server OnClick=SendMessage Text=Send /> </UpdatePanel> Server side method

  • 0

I have button

   <UpdatePanel>
         <asp:Button CssClass="btn-send" runat="server"
              OnClick="SendMessage" Text="Send" />
    </UpdatePanel>

Server side method

protected void SendMessage(object sender, EventArgs e){...}

I need to make little delay and show progress bar animation before POST. I would like to use javascript (jquery) for this.

How to make this delayed submit
1) without server delay
2) without second button with client script, which click server button?

  • 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-08T13:56:10+00:00Added an answer on June 8, 2026 at 1:56 pm

    You could try something like this…

    <asp:Button runat="server" OnClick="SendMessage" Text="Send"
       OnClientClick="return sendMessage(this);" />
    
    <script type="text/javascript">
      var sendBtn = null;
      function sendMessage(btn){
        if(sendBtn==null){
          sendBtn = btn;
          window.setTimeout(function(){ sendBtn.click(); }, 1000);
          // DO YOUR VISUAL STUFF HERE
          return false;
        }else{
          return true;
        }
      }
    </script>
    

    The idea is that the clicking of the button first stores the button object, sets a timeout to click the button, and then does the visual things you want to do.

    Then after one second, the button is clicked again (this time not doing the timeout section)

    (I have not had time to learn jquery yet, but I’m sure there is a simpler way to do this with it)

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

Sidebar

Related Questions

I have a asp:UpdatePanel with a asp:Button and a asp:TextBox : <asp:UpdatePanel ID=UpdatePanel1 runat=server>
aspx: <asp:UpdatePanel ID=updtEmpMaster runat=server> <ContentTemplate> <asp:FileUpload ID=tPhoto Height=23px runat=server /> <asp:Button ID=Button1 CssClass=btnImage runat=server
I have an Updatepanel and Gridview inside it. <asp:UpdatePanel ID=uplPanel UpdateMode=Conditional runat=server OnLoad=uplPanel_Load> <ContentTemplate>
I have Update panel in Master page: <asp:ScriptManager id=CartScript runat=server></asp:ScriptManager> <asp:UpdatePanel id=CartBox runat=server updateMode=Conditional>
I have the following very simple form: <asp:UpdatePanel ID=ClaimRewardsForm runat=server> <ContentTemplate> <span class=largeBold>Select jacket
<asp:Panel ID=CreateGroupPanel runat=server CssClass=style10 Visible=True > <asp:ToolkitScriptManager ID=ToolkitScriptManager1 runat=server> </asp:ToolkitScriptManager> <asp:UpdatePanel ID=UpdatePanel1 runat=server> ....
I have the following gridview that is inside an updatepanel: <asp:UpdatePanel ID=UpdatePanel1 runat=server> <ContentTemplate>
I have an asp.net button wrapped inside of an UpdatePanel, and when clicked it
I have a link button inside UpdatePanel in a div popup. On Button_Click, I
okay? I have a button that is inside an updatepanel, click on this button

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.