Integrating Bio-Metric Device with Web Application C# Asp.net
up vote
-1
down vote
favorite
I integrating the Bio-Metric Device with my web application, the issue is its not returning any data but the same code works for WinForms, I'm unable to get where i'm making the mistake...
any good idea/guide will be thanked with appreciation.
Thanks :)
Here is the code behind Get User Data Button.
try{
lblMessage.Text = "";
objZkeeper = new ZkemClient(RaiseDeviceEvent);
ICollection<UserInfo> lstFingerPrintTemplates = manipulator.GetAllUserInfo(objZkeeper, int.Parse("4370"));
if (lstFingerPrintTemplates != null && lstFingerPrintTemplates.Count > 0)
{
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)
{
lblMessage.Text = "Can't Fetch the User Data!";
pnlAlert.CssClass = "alert alert-warning";
pnlAlert.Visible = true;
}
and Here is the Method from which its going to get the data.
In this chunk of code my Debugger is not entering the While Loop.
public ICollection 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;
}
c# asp.net sdk biometrics
add a comment |
up vote
-1
down vote
favorite
I integrating the Bio-Metric Device with my web application, the issue is its not returning any data but the same code works for WinForms, I'm unable to get where i'm making the mistake...
any good idea/guide will be thanked with appreciation.
Thanks :)
Here is the code behind Get User Data Button.
try{
lblMessage.Text = "";
objZkeeper = new ZkemClient(RaiseDeviceEvent);
ICollection<UserInfo> lstFingerPrintTemplates = manipulator.GetAllUserInfo(objZkeeper, int.Parse("4370"));
if (lstFingerPrintTemplates != null && lstFingerPrintTemplates.Count > 0)
{
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)
{
lblMessage.Text = "Can't Fetch the User Data!";
pnlAlert.CssClass = "alert alert-warning";
pnlAlert.Visible = true;
}
and Here is the Method from which its going to get the data.
In this chunk of code my Debugger is not entering the While Loop.
public ICollection 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;
}
c# asp.net sdk biometrics
2
atleast provide some code about what are you doing else nobody will be able to understand.
– TAHA SULTAN TEMURI
Nov 10 at 13:27
In the case of biometric verification the device must be installed at user side web application will just receive its copy by uploading that biometeric code which could be in any form.
– TAHA SULTAN TEMURI
Nov 10 at 13:31
Please include code and exceptions as formatted text in the question and not as links or images.
– Jack
Nov 10 at 15:18
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I integrating the Bio-Metric Device with my web application, the issue is its not returning any data but the same code works for WinForms, I'm unable to get where i'm making the mistake...
any good idea/guide will be thanked with appreciation.
Thanks :)
Here is the code behind Get User Data Button.
try{
lblMessage.Text = "";
objZkeeper = new ZkemClient(RaiseDeviceEvent);
ICollection<UserInfo> lstFingerPrintTemplates = manipulator.GetAllUserInfo(objZkeeper, int.Parse("4370"));
if (lstFingerPrintTemplates != null && lstFingerPrintTemplates.Count > 0)
{
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)
{
lblMessage.Text = "Can't Fetch the User Data!";
pnlAlert.CssClass = "alert alert-warning";
pnlAlert.Visible = true;
}
and Here is the Method from which its going to get the data.
In this chunk of code my Debugger is not entering the While Loop.
public ICollection 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;
}
c# asp.net sdk biometrics
I integrating the Bio-Metric Device with my web application, the issue is its not returning any data but the same code works for WinForms, I'm unable to get where i'm making the mistake...
any good idea/guide will be thanked with appreciation.
Thanks :)
Here is the code behind Get User Data Button.
try{
lblMessage.Text = "";
objZkeeper = new ZkemClient(RaiseDeviceEvent);
ICollection<UserInfo> lstFingerPrintTemplates = manipulator.GetAllUserInfo(objZkeeper, int.Parse("4370"));
if (lstFingerPrintTemplates != null && lstFingerPrintTemplates.Count > 0)
{
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)
{
lblMessage.Text = "Can't Fetch the User Data!";
pnlAlert.CssClass = "alert alert-warning";
pnlAlert.Visible = true;
}
and Here is the Method from which its going to get the data.
In this chunk of code my Debugger is not entering the While Loop.
public ICollection 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;
}
c# asp.net sdk biometrics
c# asp.net sdk biometrics
edited 2 days ago
asked Nov 10 at 13:23
Rim Jhim
73
73
2
atleast provide some code about what are you doing else nobody will be able to understand.
– TAHA SULTAN TEMURI
Nov 10 at 13:27
In the case of biometric verification the device must be installed at user side web application will just receive its copy by uploading that biometeric code which could be in any form.
– TAHA SULTAN TEMURI
Nov 10 at 13:31
Please include code and exceptions as formatted text in the question and not as links or images.
– Jack
Nov 10 at 15:18
add a comment |
2
atleast provide some code about what are you doing else nobody will be able to understand.
– TAHA SULTAN TEMURI
Nov 10 at 13:27
In the case of biometric verification the device must be installed at user side web application will just receive its copy by uploading that biometeric code which could be in any form.
– TAHA SULTAN TEMURI
Nov 10 at 13:31
Please include code and exceptions as formatted text in the question and not as links or images.
– Jack
Nov 10 at 15:18
2
2
atleast provide some code about what are you doing else nobody will be able to understand.
– TAHA SULTAN TEMURI
Nov 10 at 13:27
atleast provide some code about what are you doing else nobody will be able to understand.
– TAHA SULTAN TEMURI
Nov 10 at 13:27
In the case of biometric verification the device must be installed at user side web application will just receive its copy by uploading that biometeric code which could be in any form.
– TAHA SULTAN TEMURI
Nov 10 at 13:31
In the case of biometric verification the device must be installed at user side web application will just receive its copy by uploading that biometeric code which could be in any form.
– TAHA SULTAN TEMURI
Nov 10 at 13:31
Please include code and exceptions as formatted text in the question and not as links or images.
– Jack
Nov 10 at 15:18
Please include code and exceptions as formatted text in the question and not as links or images.
– Jack
Nov 10 at 15:18
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53239379%2fintegrating-bio-metric-device-with-web-application-c-sharp-asp-net%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
atleast provide some code about what are you doing else nobody will be able to understand.
– TAHA SULTAN TEMURI
Nov 10 at 13:27
In the case of biometric verification the device must be installed at user side web application will just receive its copy by uploading that biometeric code which could be in any form.
– TAHA SULTAN TEMURI
Nov 10 at 13:31
Please include code and exceptions as formatted text in the question and not as links or images.
– Jack
Nov 10 at 15:18