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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:50:54+00:00 2026-05-18T04:50:54+00:00

I have a button which has a click event but its not firing on

  • 0

I have a button which has a click event but its not firing on the first click. I suspect its something to do with that i am in dropdown box control so when i click the Button the event for the dropdown box occurs (textChanged) but it forgets about the click event 🙂

Of course if i click it a second time it works.

Or if i click somewhere else first so that the event TextChange occurs and then click the Button the first time it executes..

Is this normal and what are more workarounds if any?

basically the TextChange event must fire but the button click event must fire as well.

All the events i am talking about are ASP.NET events.

here is some examples of the events i am using – both the button and dropdown

uxGetData is a button and uxToDate is a dropdown box

protected void uxGetData_Click(object sender, EventArgs e)
{

    BindGrid();
    RefreshBindings();

}

protected void uxToDate_TextChanged(object sender, EventArgs e)
{
    DateTime date;
    bool valid = DateTime.TryParse(uxToDate.Text, out date);

    if (valid)
    {
        MyDate myDate= _repository.GetBetweenDate(date);
        if (myDate!= null)
            uxToMyDate.SelectedValue = Convert.ToString(myDate.item);
    }
}
  • 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-18T04:50:55+00:00Added an answer on May 18, 2026 at 4:50 am

    One way around is cancel the AutoPostBack of the drop down and use AJAX instead to update the oother drop down.

    Second way around is to disable the button when the drop down selection is changed, using client side script, thus the user won’t be able to click it – will prevent the confusion.

    Can’t think of third way around ATM so hope one of the above will be suitable. 🙂

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

Sidebar

Related Questions

I have to click on the button which has id . But this id
I use ASP.NET and have a Button and a CustomValidator, which has to validate
I have a control which has a button on it. All the button does
I have google analytics on my site. One page has a button which when
I have butons which are created dynamically, each button has an id set in
I have created 4 buttons via Interface Builder. I have an array which has
I have div which has three buttons as, <div id=buttons> <input id=preview class=ButtonStyle type=submit
I have WPF Form which has many buttons with the same code. Appearance of
I have a page which has radio buttons and the selected value is taken
I have a main swf which has sound on/off buttons. It has many SWF's

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.