Button click in ASP.NET invoke Windows Form method C# -
i working on finger , face identify machines use zkemkeeper.dll class library. works on desktop application. have synchronized faces between devices on desktop. need invoke method in asp.net button click. kindly suggest me have in scenario?
public zkemkeeper.czkem zkemkeeper = new zkemkeeper.czkem();//initializing dll private bool bisconnected = false;//the boolean value identifies whether device connected //initializing bisconnected connect device bool bisconnected = zkemkeeper.connect_net(txtip.text, convert.toint32(txtport.text)); private void btndownloadface_click(object sender, eventargs e) { string suserid = ""; string sname = ""; string spassword = ""; int iprivilege = 0; bool benabled = false; int ifaceindex = 50;//the possible parameter value string stmpdata = ""; int ilength = 0; zkemkeeper.enabledevice(imachinenumber, false); zkemkeeper.readalluserid(imachinenumber);//read user information memory while (zkemkeeper.ssr_getalluserinfo(imachinenumber, out suserid, out sname, out spassword, out iprivilege, out benabled))//get users' information memory { if (zkemkeeper.getuserfacestr(imachinenumber, suserid, ifaceindex, ref stmpdata, ref ilength))//get face templates memory { //save whatever data want eg: listviewitem list = new listviewitem(); list.text = suserid; list.subitems.add(sname); list.subitems.add(spassword); list.subitems.add(iprivilege.tostring()); list.subitems.add(ifaceindex.tostring()); list.subitems.add(stmpdata); list.subitems.add(ilength.tostring()); if (benabled == true) { list.subitems.add("true"); } else { list.subitems.add("false"); } lvface.items.add(list);//lv face list view } } zkemkeeper.enabledevice(imachinenumber, true); }
Comments
Post a Comment