Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 is meant by managed and unmanaged code?

1205


What is difference between .net and .net core?

1060


What is the difference between "using system.data;" and directly adding the reference from "add references dialog box"?

1210


What is close method? How its different from finalize and dispose?

1064


How server form post-back works?

1129


What is namespace in .net?

1121


What are the new features in .net core?

1093


Is atl redundant in the .net world?

1047


Please explain what is heap and what is stack?

1057


What is Flyout Design Pattern in .NET?

1178


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

1221


How to view a .NET assembly?

1077


Explain the different types of proxy patterns?

1293


What is 'Common Type System' (CTS) in .NET?

1176


What is the difference between .net 2000 and .net 2005(features)? Which one is better?

1030