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 / chandra sekhar

@kinjal what is the use of using compare validator here??
and with what yopu are comparing the value?? your answer is
absolutely wrong.

If we want to allow only integers into a textbox then use
"^\d{0,9}" expression.

ex: <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator
ID="RegularExpressionValidator1" runat="server"
ControlToValidate="TextBox1"
ErrorMessage="RegularExpressionValidator"
ValidationExpression="^\d{0,9}"></asp:RegularExpressionValidator>

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain different types of html, web and server controls.

951


What are the new features of Framework 1.1 ?

16561


In code behind class, name the type of code found. Is it the server side code or client side code?

1252


What is .net3.5?

984


Can you write a class without specifying namespace?

1065


What is namespaces in .net?

1095


what is the keyword used for self reference?

2357


Explain the process of serialization in .NET?

1039


What is the concept of inheritance and how it works in .net?

948


Explain the use of activex control in .net?

996


What are the different.net tools which you used in projects?

933


I'm having some trouble with cas. How can I troubleshoot the problem?

958


How to load a user control dynamically in runtime?

1005


How is .net core cross platform?

1046


Describe the use of following com+ services jit activation, queued components, object pooling.?

913