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

One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?

1028


How can you assign an rgb color to a system.drawing.color object?

1024


What is heap and what is stack?

1172


I have a problem in installing visual Studio 2008 on PC that have Celeron Processor ? afterAll InstallionFaied . Pls suggest me . Is it possible or not .if Yes then How ?

2072


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

1081


Define satelite assembly?

1124


Tell us what is a variable of implicit type and what is its scope?

1076


Describe the Managed Execution Process

2236


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

1210


Explain what is the difference between odbc and ado?

1186


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

1366


Can you explain what do you understand about web service?

1199


What’s different between process and application in .net?

1123


Explain what is a manifest in .net?

1105


What is your observations between vb.net and vc#.net?

1205