Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello

i use from ajaxcontroltoolkit for a combobox.
when i run mywebsite, and whants ro type a charcter in combobox, i would be faced with below error:

JavaScript runtime error: Unable to get property 'createRange' of undefined or null reference

why?

Thanks

What I have tried:

I can't do any things.


help
Posted
Updated 19-Nov-18 8:11am

Quote:
JavaScript runtime error: Unable to get property 'createRange' of undefined or null reference

why?


Give this short discussion a read: https://stackoverflow.com/questions/25388133/combobox-throws-an-errorunable-to-get-property-createrange-of-undefined-or-nu
 
Share this answer
 
You are not getting the control Id correctly, at least that is what I think you are doing.


i.e. document.getElementById(<< control name here >>)
 
Share this answer
 
Comments
Member 13522501 19-Nov-18 10:07am    
hello and thanks for your attention to me.
when i drag combobox on the page, the below code is make in design mode:
<asp:ComboBox ID="myComboBox1" runat="server">
<asp:listitem>a
<asp:listitem>b
<asp:listitem>c
<asp:listitem>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900