>Dear the expert,
>
>How to set textbox to only accept numerical value ..?
>
>Thanks
>
>Regards
>Winan
Winan,
You can't set an textbox to only accept a numerical value. You can either:
1. Test the .text property of the textbox for a numerical value during postback and inform the user that a numerical value is required.
2. Use a third-party product that provides a textbox that only accepts numerical values.
3. Write your own textbox custom control that includes javascript to intercept keystrokes and only allow digits, commas and a decimal point.
-----------------------
ASP.NET is limited by the HTML standard, as defined by the W3C (World Wide Web Consortium). The latest version, HTML 4.01, does not include a textbox with the kind of interactive control that a textbox in VFP or a Windows Forms .NET application has.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement