>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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only