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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:34:08+00:00 2026-06-03T01:34:08+00:00

I have asp button, which functionality is for deleting the item. Button is inside

  • 0

I have asp button, which functionality is for deleting the item. Button is inside the update panel. I have datalist in that I have adding the Item and with every time I have a checkbox. I have 2 button Select All and Clear All, I am selecting all the item with my Select All button that is JQuery Code after that I am trying to delete the time. when I am selecting the item one by one then its working fine, when selecting all items then its not working.

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
    <ContentTemplate>
       <asp:Button ID="Button1" runat="server" Enabled="false" Text="Delete" 
           OnClientClick="return confirm('Are you sure?');$.loading({ mask: true, effect: 'ellipsis update' });" 
           OnClick="Button1_Click" />
       </ContentTemplate>
</asp:UpdatePanel>

HTML it is generating..

<div id="Tab1_UpdatePanel1">
      <input type="submit" id="Tab1_Button1" value="Delete Image" name="Tab1$Button1">
</div>

JQuery for Enabling disabling Button1

  $("#[id$='btnCheckAll']").click(function () {
     $("#<%= dlst1.ClientID %> input:checkbox").attr("checked", "checked");
     $("#<%=Button1.ClientID %>").removeAttr('disabled');
  });

  $("#[id$='btnUnCheck']").click(function () {
       $("#<%= dlst1.ClientID %> input:checkbox").removeAttr("checked");
       $("#<%=Button1.ClientID %>").attr('disabled', 'disabled');
  });

and on page_load also I am making Button1.Enable=false; and when I am selecting any item I directly without using checkbox i am making Button.Enabled=true over there.

Button functionality is working fine but Confirm box is not showing, I checked this Question also but not working for me.

When I am making my button enable then its working fine, But I have the condition where I need to disable the button and based on some condition i am enabling the button. then its not working.

Please someone help me?

  • 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-03T01:34:09+00:00Added an answer on June 3, 2026 at 1:34 am

    try enbaling the button and then click on it.. it will surely work

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

Sidebar

Related Questions

I have used update panel and in that update panel I have kept ASP
I have an asp:button which is inside an asp:hyperlink. When you click the button
I have an ASP.NET button in my application, which I want to open another
I use ASP.NET and have a Button and a CustomValidator, which has to validate
I have an asp.net button wrapped inside of an UpdatePanel, and when clicked it
I have an ASP button for which I have set the OnClientClick property to
I have a repeater and each item contains a button which should redirect to
I have a disabled asp.Button, which I enable later with JavaScript. Like this <asp:Button
I have an ASP.Net-Button which, when clicked, executes client side and server side code.
iv'e got an asp button which performs another task besides postback i have done

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.