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

What makes .net core cross platform?

524


What is implement a generic action in webapi?

726


What is the use com component in .net?

582


What is the concept of inheritance in .net?

605


What is the difference between response.redirect & server.transfer?

549






How does linq work?

603


What are three common acronyms used in .net, and what do they stand for?

530


Tell about your technical profile ?

3106


Is it true that objects don't always get destroyed immediately when the last reference goes away?

567


Is there built-in support for logging?

620


Tell us why do we use the “using” statement?

551


Explain why do we use msmq?

558


Explain what is the reason of occurring overflow-underflow arithmetic exception error, it shows error message when we run our program by adding control?

523


Explain how do assemblies find each other?

581


Explain what is heap and what is stack?

617