Onblur problem with combobox

I have a vb.net web program using onblur for field validations and it works fine on text box.  But combo box seems to ignore it.  Is there some otherway to do onblur on combobox?
CPOINT2000Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

COANetworkCommented:
try onchange()
0
CPOINT2000Author Commented:
onchange did not work.  my code is below.  function validvalueALFNUM works perfectly fine for textbox onblur event.

<asp:ComboBox ID="orgcategory" onchange="validvalueALFNUM(this, 'Business Category', 1, 25, 0, 1)" runat="server" AutoCompleteMode="Suggest"
CssClass="regInput" MaxLength="25" RenderMode="Block" TabIndex="11"
                                        Width="248px">
</asp:ComboBox>
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

CPOINT2000Author Commented:
Thanks, I had read the above.  I searched all over the net also so far have not found a simple solution.  I was hoping there was a simpler solution then wring an entire section to do a onblur on a combo box.
0
COANetworkCommented:
An Ajax combo, as opposed to a drop-down list, is really a combination of two controls, as mentioned in one of those links I suggested.  it's tricky binding events to it.  Look on the bright side - you can create that code once, encapsulate it and use it or all your combo boxes.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CPOINT2000Author Commented:
Thanks.  I placed the following code under page load (vb code) using my own variable and it worked;

Dim txtStartTime As TextBox
txtStartTime = cbxStartTime.FindControl("cbxStartTime_TextBox")
If txtStartTime IsNot Nothing Then
    txtStartTime.Attributes.Add("onBlur", "javascript:Set_EndDateTime(null, this);")
End If

Is that where I should keep it (under If Not IsPostBack Then)?
and I have several other dropdown boxes, so I would need one of these for each basically?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.