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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:56:51+00:00 2026-06-03T08:56:51+00:00

I am using BLOCKUI jquery confirmation dialog box plugin, Its working perfectly except its

  • 0

I am using “BLOCKUI” jquery confirmation dialog box plugin, Its working perfectly except its not reseting the button it gets poped up on,

Maybe its a logical mistake :/, here’s the code,

Script

    <script type="text/javascript" src="/_layouts/1033/jquery.js"></script>
<script type="text/javascript" src="JS.js"></script>
<script type="text/javascript">
    $(document).ready(function() { 

        $("input[id$='btDelete']").click(function() { 
            $.blockUI({ message: $('#question'), css: { width: '620px' } });
        }); 

        $("input[id$='yes']").click(function() { 
            $.blockUI({ message: "" }); 
        }); 

        $("input[id$='no']").click(function() { 
            $.unblockUI(); 
            return false; 
        }); 
    }); 
</script>

Div Tag

<asp:Content ID="Content4" ContentPlaceHolderID="cphSubmit" runat="server">
<div id="question" style="display:none; background-color:Menu; cursor: default">
    <div align="center">
        <br /><asp:Label ID="Label1"  runat="server" Text="Deleting this eDecision will remove all site content and uploaded documents.<br />Are you sure you wish to continue?" CssClass="headertext"></asp:Label><br /><br /><br /><br /><br />
        <asp:Button ID="yes" Width="200px" Height="25px" CssClass="gradientbutton" OnClick="btDelete_Click" Runat="server" Text="Yes"></asp:Button>
        <asp:Button ID="no" Width="200px" Height="25px" CssClass="gradientbutton" Runat="server" Text="No"></asp:Button><br /><br /><br />
    </div>
</div>

Button

    <td>
    <asp:Button ID="btDelete" runat="server" CssClass="gradientbutton" OnClick="btDelete_Click"
    OnClientClick="this.disabled=true;" Text="Delete" Width="200px"  />
</td>

Here;s the Plugin Link

If I make changes to the button as

<asp:Button ID="btDelete" runat="server" CssClass="gradientbutton" Text="Delete" Width="200px"  />

The dialog box appears and then disappears :S

and IF button is like below, dialog appears but then even if i press “No” delete button stays disabled,

<asp:Button ID="btDelete" runat="server" CssClass="gradientbutton" OnClick="btDelete_Click"
    OnClientClick="this.disabled=true;" Text="Delete" Width="200px"  />

Cheers

  • 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-03T08:56:53+00:00Added an answer on June 3, 2026 at 8:56 am

    Try this

        $("input[id$='btDelete']").click(function() {  
            $.blockUI({ message: $('#question'), css: { width: '620px' } }); 
            return false;
        });
    

    And your button without the OnClientClick. You already have a client-click event above. The return false will stop the event bubbling and prevent the submit of the asp.net button.

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

Sidebar

Related Questions

I'm using jQuery BlockUI Plugin and I'd like to do Javascript:history back(); after Click
I am trying to block click on links using jQuery blockUI plugin. It's seems
I am using JQuery UI plugin blockUI to block UI for every ajax request.
Using the BlockUI JQuery plugin I find strange behaviour from within an ASP.Net page.
I am using this plugin. http://jquery.malsup.com/block/#overview However I would like this blockUI to only
i am using jquery BlockUI Plugin. i looking for a way to have callback
My site is using the jQuery tooltip plugin ( http://jquery.bassistance.de/tooltip/demo/ ) and the blockui
I'm using JQuery Picasa Webalbum Integrator that gets filled from codebehind. But it's not
I'm trying to use the jQuery BlockUI Plugin to block a jQuery dialog while
I'm using jQuery with the BlockUI plugin to block a page after a link

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.