Last post Aug 28, 2009 01:30 PM by vdogra77
Aug 28, 2009 08:33 AM|rnazemi|LINK
<cc1:ComboBox ID="TextBoxManager" runat="server" onchange="MyFunc();"
AutoPostBack="False" DropDownStyle="DropDownList" AutoCompleteMode="SuggestAppend"
CaseSensitive="False" CssClass="AjaxToolkitStyle" ItemInsertLocation="Append"></cc1:ComboBox>
Aug 28, 2009 01:30 PM|vdogra77|LINK
Refer following URL for this:
I am pasting the relevant content here:
The comboBox has a couple of server side events to deal with field changing.
How can we catch the comboBox changing on the client side?
Without access to these function on the client side, we need to use the client side events of the textBox that is contained within the comboBox. As with any textBox this one also has the onChange event, but the event does not run when the text was changed and
the focus moved to another field. There are a few options:
a comboBox is the ability to use the mouse, which will not be captured by this event, leaving onBlur as the remaining option. It’s still not perfect, since the event won’t run until the focus is moved off the comboBox, but it appears to be the best option.
In some cases you may want to use both onKeyUp and onBlur to get the best of both events, but be careful because when the user uses the keyboard and the moves the focus your event will run twice.
protected void Page_Load(object sender, EventArgs e)
TextBox textBox = cmbExample.FindControl("TextBox") as TextBox;
if (textBox != null)