for the textbox if i want to allow only numbers.what ever
the characters u enter it should not take.which event u used?

Answer Posted / kinjal

if u r using web application then take one textbox and use comparevalidator

set properties of comparevalidator .

<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="TextBox1"

Display="Dynamic" ErrorMessage="Integer required."
Operator="DataTypeCheck" SetFocusOnError="True"

Type="Integer"></asp:CompareValidator>

Is This Answer Correct ?    13 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is the COM architecture same as .Net architecture? What is the difference between them (if at all there is)?

1771


What does mean by .net framework?

776


Please explain what are an object and a class?

712


Explain me what is the difference between an abstract class and an interface?

784


What is the purpose of IClonable interface in .NET?

812


How do you trigger the paint event in system.drawing?

759


What is the concept of inheritance in .net?

824


What is assembly in .net?

804


How is threading done in .net?

763


what will do to avoid prior case?

788


Explain what is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?

788


How can I find out what the garbage collector is doing?

732


What is WSDL? Explain its architecture?

865


What is .net3.0 and .net3.5?

765


Is Driver Script any how related to AOM?

859