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

The project which you have made, which methodology did you use?

841


What is the use of UML in .Net

821


What is managed code and managed data in .net?

815


What is the best way to crack the certification?

1607


How is a managed code executed?

1055


What is .net code security?

798


What is garbage collection in .net? Explain the garbage collection process?

792


How will you register com+ services?

1807


Is there a way to suppress the finalize process inside the garbage collector forcibly in .net?

722


Is there any thread in our .net programs?

856


Different levels of priority provided by .net.

850


Difference abstract class and interface in .net?

831


Explain how to load the contents of an xml file into an xmldocument object?

761


What is "common language runtime" (clr) in .net?

842


What is the difference between asp.net & vb.net and explain architecture?

794