Click here to Skip to main content
15,892,537 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionAustralian License Number Validation Pin
That's Aragon2-Mar-08 22:01
That's Aragon2-Mar-08 22:01 
GeneralRe: Australian License Number Validation Pin
Christian Graus2-Mar-08 22:36
protectorChristian Graus2-Mar-08 22:36 
GeneralRe: Australian License Number Validation Pin
That's Aragon2-Mar-08 22:42
That's Aragon2-Mar-08 22:42 
GeneralRe: Australian License Number Validation Pin
Christian Graus2-Mar-08 22:46
protectorChristian Graus2-Mar-08 22:46 
GeneralRe: Australian License Number Validation Pin
That's Aragon2-Mar-08 22:54
That's Aragon2-Mar-08 22:54 
GeneralRe: Australian License Number Validation Pin
Vasudevan Deepak Kumar2-Mar-08 23:27
Vasudevan Deepak Kumar2-Mar-08 23:27 
GeneralRe: Australian License Number Validation Pin
That's Aragon2-Mar-08 23:46
That's Aragon2-Mar-08 23:46 
GeneralRe: Australian License Number Validation Pin
Gandalf_TheWhite3-Mar-08 22:24
professionalGandalf_TheWhite3-Mar-08 22:24 
U can try out for Javascript posted below
Expresso cannot work for the expressions like this. That becomes tough for Expresso.

Try this.. put the code in ur jscript

<br />
function nx(obj)<br />
{<br />
	var str = document.getElementById(obj).value;<br />
	if(str.length > 3 && str.length < 10)<br />
	{<br />
		if((str.charCodeAt(2) > 47 && str.charCodeAt(2) < 58) && (str.charCodeAt(3) > 47 && str.charCodeAt(3) < 58)) <br />
		{<br />
				var c = 0;<br />
				var n = 0;<br />
				for(i = 0 ; i < str.length ; i++)<br />
				{<br />
					if(str.charCodeAt(i) > 47 && str.charCodeAt(i) < 58)<br />
					{<br />
						n++<br />
					}<br />
					else<br />
					{<br />
						c++<br />
					}<br />
				}<br />
				if(n < 4 && c > 2)<br />
				{<br />
					return false<br />
				}<br />
				else<br />
				{<br />
					return true;<br />
				}<br />
		}<br />
		else<br />
		{<br />
			return false;<br />
		}<br />
	}<br />
	else<br />
	{<br />
		return false;<br />
	}<br />
	return false;<br />
}<br />


The ASCII part is very Improtent to do the task.
I hope that will help
If work let me know. Smile | :)

Believe Yourself™ Shucks | :-\

GeneralRe: Australian License Number Validation Pin
That's Aragon4-Mar-08 0:00
That's Aragon4-Mar-08 0:00 
Questionhow can i forbidden user to visit a directory? MembershipProvider? Pin
CooperWu2-Mar-08 21:24
CooperWu2-Mar-08 21:24 
GeneralRe: how can i forbidden user to visit a directory? MembershipProvider? Pin
N a v a n e e t h2-Mar-08 21:35
N a v a n e e t h2-Mar-08 21:35 
GeneralRe: how can i forbidden user to visit a directory? MembershipProvider? Pin
CooperWu2-Mar-08 22:41
CooperWu2-Mar-08 22:41 
GeneralConfigure File Errors Pin
md_refay2-Mar-08 20:59
md_refay2-Mar-08 20:59 
GeneralRe: Configure File Errors Pin
N a v a n e e t h2-Mar-08 21:25
N a v a n e e t h2-Mar-08 21:25 
Questionexception while allocating memory to the class (a dll reference to the web project) Pin
Sonia Gupta2-Mar-08 20:40
Sonia Gupta2-Mar-08 20:40 
GeneralRe: exception while allocating memory to the class (a dll reference to the web project) Pin
N a v a n e e t h2-Mar-08 21:17
N a v a n e e t h2-Mar-08 21:17 
GeneralRe: exception while allocating memory to the class (a dll reference to the web project) Pin
Christian Graus2-Mar-08 22:48
protectorChristian Graus2-Mar-08 22:48 
QuestionHow to disable CTRL + N Key in a keyboard.? Pin
Balagurunathan S2-Mar-08 20:40
Balagurunathan S2-Mar-08 20:40 
AnswerRe: How to disable CTRL + N Key in a keyboard.? Pin
N a v a n e e t h2-Mar-08 21:15
N a v a n e e t h2-Mar-08 21:15 
GeneralRe: How to disable CTRL + N Key in a keyboard.? Pin
Vasudevan Deepak Kumar2-Mar-08 21:25
Vasudevan Deepak Kumar2-Mar-08 21:25 
GeneralRe: How to disable CTRL + N Key in a keyboard.? Pin
N a v a n e e t h2-Mar-08 21:30
N a v a n e e t h2-Mar-08 21:30 
AnswerRe: How to disable CTRL + N Key in a keyboard.? Pin
Vasudevan Deepak Kumar2-Mar-08 21:25
Vasudevan Deepak Kumar2-Mar-08 21:25 
GeneralRe: How to disable CTRL + N Key in a keyboard.? Pin
Balagurunathan S2-Mar-08 22:17
Balagurunathan S2-Mar-08 22:17 
GeneralRe: How to disable CTRL + N Key in a keyboard.? Pin
Vasudevan Deepak Kumar2-Mar-08 22:30
Vasudevan Deepak Kumar2-Mar-08 22:30 
GeneralAutomatic signout in form authentication Pin
Vipin.d2-Mar-08 20:20
Vipin.d2-Mar-08 20:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.