Click here to Skip to main content
16,009,255 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi i have created usercontrol in c# Which is EditableDropdownList based on TextBox Control.
Using this control i m creating webusercontrol for avoid to call every time calling jquery script.

It is working fine. But in my web page, i want to restrict allow numeric values. so i m creating javscript function within that page. And I m called using onkeydown function. But it is not working.

If I call javascript function webusercontrol itself, it is working. But I want to call .aspx page, because i call javascript function if it needs that page.

Any one can clear this problem.
Posted
Updated 5-May-13 18:48pm
v2

1 solution

If you just want to restrict textbox control to accept numbers only .. you can use FilteredTextBox Extender.


<asp:FilteredTextBoxExtender id="FilteredTextBoxExtender50" runat="server" filtertype="Numbers" targetcontrolid="TxtBox">
 
Share this answer
 
v3
Comments
VICK 3-May-13 8:29am    
I think due to some site issue Closing Tag is not showing up in my solution..
SO kindly consider closing it your self.... :(
UshaCbe 4-May-13 1:44am    
Can we used javascript for filtered?
VICK 4-May-13 9:27am    
Yes.. JavaScript can be used..but filteredextender is a built in asp functionality.. So its more reliable and better to use it... I am also a novice in this field.. so might be my opinion is not much worthy.. but I have told You what I have used myself...:)
UshaCbe 6-May-13 0:25am    
hi, I m using javascript in my website. So I want used to javascript. But it is not working in webusercontrol
VICK 6-May-13 4:43am    
You should use Extender control rather than javaScript...

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