Click here to Skip to main content
15,847,077 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Can anyone tell me how can I verify PAN Card number whether it Exists or Not using asp.net
Posted
Updated 27-Jul-15 5:15am
v2
Comments
ZurdoDev 7-Aug-12 10:14am    
Do the authorities for PAN have an API?

Dear Friend,

You can use this simple Javascript function.

JavaScript
/*  This function validates for PAN Card No.*/
function pan_card(textObj) 
{
	var regpan = /^([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}?$/;
	/*C - Company 
	P - Person 
	H - HUF(Hindu Undivided Family) 
	F - Firm 
	A - Association of Persons (AOP) 
	T - AOP (Trust) 
	B - Body of Individuals (BOI) 
	L - Local Authority 
	J - Artificial Juridical Person 
	G - Govt.*/
	var code= /([C,P,H,F,A,T,B,L,J,G])/;
	var code_chk=textObj.substring(3,4);
	if (textObj!=="")
	{
		if(regpan.test(textObj) == false)
		{
			alert("Invaild PAN Card No.")
			return false; 
		}
		if (code.test(code_chk)==false)
		{
			alert("Invaild PAN Card No.");
			return false;
		}
	}
}
 
Share this answer
 
v2
Comments
rajuvpatil 8-Aug-12 1:18am    
Thanks....
You can read one of the various threads on how to check the status of a PAN number.
Pick one: Verify PAN number[^]

You would need to put an iframe and the direct link in it where one can put the number and see the status.

If you are looking for any API or exposed service, AFAIK it does not exist. You can only page scrap one of the websites that provide you the status.
 
Share this answer
 
Comments
rajuvpatil 8-Aug-12 1:18am    
Thanks....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900