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
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?
How can you assign an rgb color to a system.drawing.color object?
What is heap and what is stack?
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 ?
I'm having some trouble with cas. How can I troubleshoot the problem?
Define satelite assembly?
Tell us what is a variable of implicit type and what is its scope?
Describe the Managed Execution Process
What is the difference between "using system.data;" and directly adding the reference from "add references dialog box"?
Explain what is the difference between odbc and ado?
In code behind class, name the type of code found. Is it the server side code or client side code?
Can you explain what do you understand about web service?
What’s different between process and application in .net?
Explain what is a manifest in .net?
What is your observations between vb.net and vc#.net?