Validating string for numeric values in SQL Server
November 5, 2009 by Nauman · Leave a Comment
What to do when you have a large string and you have to validate whether this string only contain digits or not. A straight thing that comes in our mind is to use a looping technique to traverse all the characters in the string and validate each character to be a digit. But how could [...]
How to validate ReCAPTCHA.
November 3, 2009 by Nauman · 7 Comments
There are some cases when a user want to validate a CAPTCHA and perform some activity on its results. ReCAPTCHA gives an .NET API to perform some operations on its CAPTCHA component. Following is the code to validate a CAPTCHA on server side. ASPX Markup: <!– Start ReCAPTCHA –> <span class="orangetext">Captcha Verification:</span> <recaptcha:RecaptchaControl ID="recaptcha" runat="server" [...]
charachter validation and count for a textbox – Javascript
November 3, 2009 by Nauman · Leave a Comment
Here I have provided a solution to put a counter for a textbox, that can be updated as each character typed into the textbox. This script will also validate the maximum character length allowed for a textbox. This script will also work when anyone copy/paste the text into the textbox. Textbox can be either single [...]