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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:50:32+00:00 2026-05-12T15:50:32+00:00

I need a combobox for an ASP.NET project, so I decided to use the

  • 0

I need a combobox for an ASP.NET project, so I decided to use the Ajax Control Toolkit combobox (http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ComboBox/ComboBox.aspx).

I don’t want to use the postback as I don’t want the page reloaded, but I need to know when the text in the textbox is changed so I can call out to the server to persist the new list item.

I am curious how I bind an onchange or onblur event to the input box that this combobox uses.

This is my asp.net page:

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<cc1:ComboBox ID="PlantDropDown" runat="server" OnInit="PlantDropDown_Init" DropDownStyle="DropDown" 
             AutoCompleteMode="SuggestAppend" 
            ItemInsertLocation="OrdinalText" AutoPostBack="false">


                </cc1:ComboBox>

Update: I tried using the suggestion and I get this error:

$find("PlantDropDown") is null
[Break on this error]
$find(‘PlantDropDown’).add_propertyChanged(function(sender, e) {\r\n

I am using jQuery for the Javascript side, btw, in case that helps.

Final Update:
I got it to work thanks to help from crescentfresh, and at the end I have this in my .aspx file:

<input type="hidden" id="PlantDropDownID" value="<%= PlantDropDown.ClientID %>" />

And this is in my javascript file, since I don’t push javascript in my .aspx file:

elem = document.getElementById('PlantDropDownID');
$find(elem.value).add_propertyChanged(function(sender, e) {
    if (e.get_propertyName() == 'selectedIndex') {
        var newValue = sender.get_textBoxControl().value;
    }
})
  • 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-12T15:50:32+00:00Added an answer on May 12, 2026 at 3:50 pm

    I believe you are supposed to bind to the "propertyChanged" event and check for changes to the "selectedIndex" property:

    $find('PlantDropDown').add_propertyChanged(function(sender, e) {
        if (e.get_propertyName() == 'selectedIndex') {
            var newValue = sender.get_textBoxControl().value;
    
            // persist selected value here...
        }
    })
    

    with the usual caveat about .NET control ids in the client.

    The api is not easy, that’s for sure. There is no .get_value() method for example, which would be nice instead of having to go through the embedded textbox control.

    Edit:

    > $find(“PlantDropDown”) is null

    Make sure you are using the correct id. See .NET control ids in the client. To get a reference you may have to do:

    $find('<%= PlantDropDown.ClientID %>')
    

    > I am using jQuery for the javascript side

    That holds no bearing.

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

Sidebar

Related Questions

I need to cast a generic VBA form control object into a ComboBox object
I need to customize the combobox widget build from the jQuery UI Autocomplete http://jqueryui.com/demos/autocomplete/#combobox
I have a normal asp.net combobox on my web page. The current version is
I am new to ExtJS,i used in asp.net,C# in VS2008.. i simply added comboBox
I have need of a checked combobox control like this one --> DevExpress (I
I need a to use an autocomplete in rails application. Which use the combobox
I am calling a Ajax call from my asp.net page. I have a combo
Is it possible to use the default ComboBox control under VB6 to make it
I need to use an Enum with a combobox (values shown below). YES (shown
I have a combobox from which i need to programmatically disable items depending on

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.