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
What is meant by managed and unmanaged code?
What is difference between .net and .net core?
What is the difference between "using system.data;" and directly adding the reference from "add references dialog box"?
What is close method? How its different from finalize and dispose?
How server form post-back works?
What is namespace in .net?
What are the new features in .net core?
Is atl redundant in the .net world?
Please explain what is heap and what is stack?
What is Flyout Design Pattern in .NET?
What is the difference between response.redirect & server.transfer?
How to view a .NET assembly?
Explain the different types of proxy patterns?
What is 'Common Type System' (CTS) in .NET?
What is the difference between .net 2000 and .net 2005(features)? Which one is better?