如何验证PAN卡号? [英] How do I verify a PAN Card number?

查看:159
本文介绍了如何验证PAN卡号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁能告诉我如何验证PAN卡号是否存在或不使用asp.net

解决方案

亲爱的朋友,



你可以使用这个简单的Javascript函数。



  / *  此功能验证PAN卡号* /  
功能 pan_card(textObj)
{
var regpan = / ^([a-zA-Z]){ 5 }([0-9]){ 4 }([a-zA-Z]){ 1 }

/?;
/ * C - 公司
P - 人
H - HUF(Hindu Undivided家庭)
F - 公司
A - 人员协会(AOP)
T - AOP(信托)
B - 个人团体(BOI)
L - 本地权限
J - 人工法人
G - 政府。* /

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 ;
}
如果(code.test(code_chk)== false
{
alert( Invaild PAN Card No.);
return false ;
}
}
}


您可以阅读有关如何检查PAN状态的各种线程之一数。

选择一个:验证PAN编号 [ ^ ]



你需要将iframe和直接链接放在其中,可以放置数字并查看状态。



如果您正在寻找任何API或公开服务,AFAIK它不存在。您只能将提供状态的网站之一页面废弃。


Can anyone tell me how can I verify PAN Card number whether it Exists or Not using asp.net

解决方案

Dear Friend,

You can use this simple Javascript function.

/*  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; } } }


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.


这篇关于如何验证PAN卡号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆