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

  • Home
  • SEARCH
  • 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 559293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:13:23+00:00 2026-05-13T12:13:23+00:00

Is it possible to prevent the _doPostBack() call getting rendered on a button? I

  • 0

Is it possible to prevent the _doPostBack() call getting rendered on a button?

I would like add some custom logic prior to calling the postback.

I have added an onClick event to the button

e.g.

<button id="manualSubmit" runat="server" class="manual-submit" onclick="$('#jeweller-form').hide();"  />

However, this just gets rendered inline before the _doPostBack()
But the postback gets fired before the jQueryHide takes place

I would like to call my own JS function then manually trigger the postback

any ideas?

  • 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-13T12:13:24+00:00Added an answer on May 13, 2026 at 12:13 pm

    Try this:

    <button runat="server" id="Test" onserverclick="Test_ServerClick">Submit</button>
    
    <script src="jquery-1.3.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            var o = $("#Test"), c = o.attr("onclick");
            o
            .removeAttr("onclick")
            .click(function(e) {
                o.fadeOut("slow", function() {
                    o.fadeIn("slow", function() {
                        c(e);
                    });
                });
                return false;
            });
        });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to prevent an asp.net Hyperlink control from linking, i.e. so that
Is it possible to prevent stack allocation of an object and only allow it
Is it possible to prevent the browser from following redirects when sending XMLHttpRequest-s (i.e.
Is it possible to use a CHECK constraint to prevent any date that falls
Is it possible in a Compact Framework application to prevent the garbage collector from
Is it possible to 'hide' a column in an Oracle 10g database, or prevent
I was wondering is it possible to prevent only a one element in plot
Let me know if it's possible to prevent users from opening the same java
I'd like to password protect my ipad's home button... basically we have the ipad
Possible Duplicate: Why not use tables for layout in HTML? Under what conditions should

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.