Click here to Skip to main content
15,912,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends,
i want a Textbox in Usercontrol(.ascx).
it should be numeric UserControl textbox(ex:121,234).
and other textbox should be numeric with decimal (ex:3.4,100.23).

regards,
Aamir
Posted
Comments
StianSandberg 25-Jul-12 4:48am    
have you even tried doing this? Tried google?
aamir07 25-Jul-12 7:57am    
i have done this on .aspx page but never in .ascx

And what else apart form the 'requirement'?
Tried anything?

Please try by yourself and post specific issues.

Overall, you need to have either masked textbox. Allow only integers as per need. You can raise Javascript alerts in case you want to warn user.


Try out!
 
Share this answer
 
Hi,
You should try masked textboxes. Refer here[^].


--Amit
 
Share this answer
 
No solutions I m getting for my query.
I am not much aware of the usercontrol.But my requirement is to create Usercontrol set its properties and validate it for maxlentgh,numeric textbox.
 
Share this answer
 
v2

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