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









share|improve this question




















  • 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















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









share|improve this question




















  • 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













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









share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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














  • 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

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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





































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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




















































































Popular posts from this blog

The Sandy Post

Danny Elfman

Pages that link to "Head v. Amoskeag Manufacturing Co."