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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:19:02+00:00 2026-06-16T04:19:02+00:00

This is killing me has to be something simple I am overlooking. I am

  • 0

This is killing me has to be something simple I am overlooking. I am trying to fire off a simple JavaScript function from the click of an ASP button. My button looks like this:

<asp:Button ID="btnFinalize" runat="server" Enabled="False" OnClientClick="finalizeClick(); return false;" Text="Finalize Selection" />

I do enable it based on some other client logic, once enabled I click it but nothing happens.

I have a break point inside the JS function finalizeClick() it never gets there.

So I tried a regular HTML button and it calls the function just fine and performs as expected. It looks like:

<input  type="button" id="btnFinalizeNotASP" value="button" onclick="finalizeClick();"/>

Going crazy, please help.

EDIT More info. Has to be something with Enabled="False". If I take that out of the ASP tag it works. I want to start with the button disabled and enable it on other events client side I do that in another JavaScript event where I set:

finalizeButton.disabled = false;

Not sure why but finalizeButton.enabled = true; never turned the button on.

Still puzzled,

  • 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-16T04:19:04+00:00Added an answer on June 16, 2026 at 4:19 am

    I figured out something that works, but I don’t really like it. Would like to know from others why and if there is a better solution.

    If I leave the:

    Enabled="False"
    

    out of my ASP tag and put

    var btnfinalize = document.getElementById("<%=btnFinalize.ClientID %>");
    btnfinalize.disabled = true;
    

    in the javascript of my page the ASP button is enabled during design, disabled when the page loads and properly fires the javascrip function I want when later enabled (really disabled=false ) and clicked

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

Sidebar

Related Questions

This simple problem is kiling me. I posted something earlier about trying to clean
Sorry for the simple question, but this has been killing me and I can't
This works. $(document).ready(function(){ $(.items article).click(function(){ window.location=$(this).find(a).attr(href); return false; }); }); However , when the
This has been killing me all day =D. Please help! Scenario 1: Two DB's
This has been really killing me for the last couple of days now. I
This has been killing me for two days now. I have a main Activity
This has been killing me for two days now. I have a main Activity
new to this site, but my head is absolutely killing me after trying for
This is killing me.. The Image has a background of solid red, a foreground
This has been killing me - I have a massive file that I need

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.