TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rameez Javed
NA
395
61.7k
Intergation of Biometric with Web Application
Nov 12 2018 6:59 AM
Hi, I'm trying to integrate Biometric Device with my Web Application, but the issue is code works for Sdk, and a test project in WinForms but not working for my WebApplication, the debugger doesn't goes inside while loop.
try
{
//ShowStatusBar(string.Empty, true);
lblMessage.Text =
""
;
objZkeeper =
new
ZkemClient(RaiseDeviceEvent);
ICollection<UserInfo> lstFingerPrintTemplates = manipulator.GetAllUserInfo(objZkeeper,
int
.Parse(
"4370"
));
//DataTable dt = manipulator.GetAllUserInfo(objZkeeper, int.Parse(hdID.Value));
if
(lstFingerPrintTemplates !=
null
&& lstFingerPrintTemplates.Count > 0)
{
//BindToGridView(lstFingerPrintTemplates);
GV_Attendance.DataSource = lstFingerPrintTemplates;
GV_Attendance.DataBind();
ShowStatusBar(lstFingerPrintTemplates.Count +
" records found !!"
,
true
);
}
else
{
//DisplayListOutput("No records found");
lblMessage.Text =
"Caution! No Record Found!"
;
pnlAlert.CssClass =
"alert alert-warning"
;
pnlAlert.Visible =
true
;
}
}
catch
(Exception ex)
{
//DisplayListOutput(ex.Message);
lblMessage.Text =
"Can't Fetch the User Data!"
;
pnlAlert.CssClass =
"alert alert-warning"
;
pnlAlert.Visible =
true
;
}
public
ICollection<UserInfo> GetAllUserInfo(ZkemClient objZkeeper,
int
machineNumber)
{
string
sdwEnrollNumber =
string
.Empty, sName =
string
.Empty, sPassword =
string
.Empty, sTmpData =
string
.Empty;
int
iPrivilege = 0, iTmpLength = 0, iFlag = 0, idwFingerIndex;
bool
bEnabled =
false
;
ICollection<UserInfo> lstFPTemplates =
new
List<UserInfo>();
objZkeeper.ReadAllUserID(machineNumber);
objZkeeper.ReadAllTemplate(machineNumber);
while
(objZkeeper.SSR_GetAllUserInfo(machineNumber,
out
sdwEnrollNumber,
out
sName,
out
sPassword,
out
iPrivilege,
out
bEnabled))
try
{
for
(idwFingerIndex = 0; idwFingerIndex < 10; idwFingerIndex++)
{
if
(objZkeeper.GetUserTmpExStr(machineNumber, sdwEnrollNumber, idwFingerIndex,
out
iFlag,
out
sTmpData,
out
iTmpLength))
{
UserInfo fpInfo =
new
UserInfo();
fpInfo.MachineNumber = machineNumber;
fpInfo.EnrollNumber = sdwEnrollNumber;
fpInfo.Name = sName;
fpInfo.FingerIndex = idwFingerIndex;
fpInfo.TmpData = sTmpData;
fpInfo.Privelage = iPrivilege;
fpInfo.Password = sPassword;
fpInfo.Enabled = bEnabled;
fpInfo.iFlag = iFlag.ToString();
lstFPTemplates.Add(fpInfo);
}
}
}
catch
(Exception ex)
{
}
return
lstFPTemplates;
}
Reply
Answers (
1
)
how to save image in folder from android site
Added Contact wont display in C#!!!