I'm a newbie using NET on web so please bear with me.
I have developed client to interface a biometric fingerprint scanner device using the manufacturer's SDK for my company.
Now I need to move another step further by bringing it onto IE instead of a local install client.
This is the situation:
- The Server host the IIS and SQL with the data for fingerprint matching.
- The Client to scan their finger using the finger scanner device connected to the client's PC, via IE (web page).
- The device then match against the fingerprint data from the server's SQL data.
- It must return a value (the result) to the web page that call for the matching.
What method can I use? I am lost as how to implement it.
10 1567
I believe one might be to convert the image to binary data, store this in the database and then compare. HTH.
Frinavale 9,735
Recognized Expert Moderator Expert
I'm a newbie using NET on web so please bear with me.
I have developed client to interface a biometric fingerprint scanner device using the manufacturer's SDK for my company.
Now I need to move another step further by bringing it onto IE instead of a local install client.
This is the situation:
- The Server host the IIS and SQL with the data for fingerprint matching.
- The Client to scan their finger using the finger scanner device connected to the client's PC, via IE (web page).
- The device then match against the fingerprint data from the server's SQL data.
- It must return a value (the result) to the web page that call for the matching.
What method can I use? I am lost as how to implement it.
You have quite the challenge here.
You're going to have to design an ActiveX control that retrieves the data from the client's computer. My suggestion is Not to use .NET to develop this ActiveX control. .NET "ActiveX' controls have a whole bunch of security layers to them and some computers will refuse to run them (due to the fact that they are Untrusted code running from off the Internet). If you don't use .NET, you will probably have more luck in getting this to work. Please note that ActiveX controls will only work with an IE web browser...and the web browser has to have ActiveX enabled.
-Frinny
i got this from a tutorial: - Public Interface AxMyControl
-
Property UserText() As String
-
End Interface
-
-
Public Class myControl
-
Inherits System.Windows.Forms.UserControl, AxMyControl
-
Private mStr_UserText As String
-
-
Public Property UserText() As String
-
Get
-
Return mStr_UserText
-
End Get
-
Set(ByVal Value As String)
-
mStr_UserText = Value
-
txtUserText.Text = Value 'Update the text box control value also.
-
End Set
-
End Property
-
End Class
-
and the HTML: - <html>
-
<body color=white>
-
<hr>
-
<font face=arial size=1>
-
<OBJECT id="myControl1" name="myControl1" classid="ActiveXDotNet.dll#ActiveXDotNet.myControl" width=288 height=72>
-
</OBJECT>
-
</font>
-
<form name="frm" id="frm">
-
<input type="text" name="txt" value="enter text here">
-
<input type=button value="Click me" onClick="doScript();">
-
</form>
-
<hr>
-
</body>
-
<script language="javascript">
-
function doScript()
-
{
-
myControl1.UserText = frm.txt.value;
-
}
-
</script>
-
</html>
this line: Inherits System.Windows.Forms.UserControl, AxMyControl
give me an error of 'Inherits' can appear only once within a 'Class' statement and can only specify one class.'
i removed the line, the ActiveX appears on the HTML page but dont works as its suppose to be.
i appreciate some help on this, how to make it works? thanks.
Frinavale 9,735
Recognized Expert Moderator Expert
i got this from a tutorial: - Public Interface AxMyControl
-
Property UserText() As String
-
End Interface
-
-
Public Class myControl
-
Inherits System.Windows.Forms.UserControl, AxMyControl
-
Private mStr_UserText As String
-
-
Public Property UserText() As String
-
Get
-
Return mStr_UserText
-
End Get
-
Set(ByVal Value As String)
-
mStr_UserText = Value
-
txtUserText.Text = Value 'Update the text box control value also.
-
End Set
-
End Property
-
End Class
-
and the HTML: - <html>
-
<body color=white>
-
<hr>
-
<font face=arial size=1>
-
<OBJECT id="myControl1" name="myControl1" classid="ActiveXDotNet.dll#ActiveXDotNet.myControl" width=288 height=72>
-
</OBJECT>
-
</font>
-
<form name="frm" id="frm">
-
<input type="text" name="txt" value="enter text here"><input type=button value="Click me" onClick="doScript();">
-
</form>
-
<hr>
-
</body>
-
<script language="javascript">
-
function doScript()
-
{
-
myControl1.UserText = frm.txt.value;
-
}
-
</script>
-
</html>
this line: Inherits System.Windows.Forms.UserControl, AxMyControl
give me an error of 'Inherits' can appear only once within a 'Class' statement and can only specify one class.'
i removed the line, the ActiveX appears on the HTML page but dont works as its suppose to be.
i appreciate some help on this, how to make it works? thanks.
The source that you took that from must have converted some C# code into VB.NET.
In VB, you can only ever inherit from One parent.
The line: - Inherits System.Windows.Forms.UserControl, AxMyControl
Is attempting to inherit from both System.Windows.Forms.UserControl, and AxMyControl.
To fix this problem, have the AxMyControl inherit from System.Windows.Forms.UserControl. Then your myControl class only has to inherit from one parent: AxMyControl.
-Frinny
Plater 7,872
Recognized Expert Expert
C# can only inherint from one parent as well.
You want to inherit the UserControl, and implement the interface.
However, the syntax in C# is the same: -
public partial class myControl : UserControl, AxMyControl
-
I'm not sure what the syntax in VBNET is (I used that same tutorial, but I use C#)
Frinavale 9,735
Recognized Expert Moderator Expert
C# can only inherint from one parent as well.
You want to inherit the UserControl, and implement the interface.
I didn't realize it was the same for C#...in C++ you can have multiple.
However, the syntax in C# is the same: -
public partial class myControl : UserControl, AxMyControl
-
I'm not sure what the syntax in VBNET is (I used that same tutorial, but I use C#)
What you're saying makes sense Plater...but remember that thread about my issues with ActiveX controls?...how my code differed from yours?
I'm still not sure why there is such a difference in syntax between the VB.NET code and the C# code.
I'll have to look into it later...
Plater 7,872
Recognized Expert Expert
I'm honestly not convinced you need that interface reference. You could probably leave it out and still be fine
I'm honestly not convinced you need that interface reference. You could probably leave it out and still be fine
the text form the html input box is not shown on the activex textbox after clicking the button, as it should be,
please help, thanks so much for the inputs so far.
i've tried ways and means the whole day but the same result. the text i keyed into the web form input box just wont show in the activex textbox.
another question, how to pass back a value back to the web page?
thanks.
Frinavale 9,735
Recognized Expert Moderator Expert
i've tried ways and means the whole day but the same result. the text i keyed into the web form input box just wont show in the activex textbox.
another question, how to pass back a value back to the web page?
thanks.
have you tried developing your ActiveX using VB6?
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: SteveJ |
last post by:
All,
Can someone help me solve the next step.
First of all let me say I'm new to php. I pieced the following code together
from samples
I found on the net and a book I bought called PHP...
|
by: Jon Haakon |
last post by:
Hi,
I'm developing a websolution using ASP and DHTML technology that's
running on a MS IIS webserver.
My solution is frame based with a toolbar on top, a hidden frame for
scripts in the...
|
by: Randi |
last post by:
Hi all,
I there any way of putting an html hyperlink into a .xml file, and still be
able to use the xml tags to format the page? Here is the code of the xml
file(real simple) and the .css file. ...
|
by: Hazzard |
last post by:
I just realized that the code I inherited is using all asp.net server
controls (ie. webform controls) and when I try to update textboxes on the
client side, I lose the new value of the textbox when...
|
by: mca |
last post by:
Hi everyone,
I'm new to asp.net and i have a question about separating the html
code from the programming code.
i have an unknown numbers of entries in my table. I want to make a
hyperlink...
| |
by: Guadala Harry |
last post by:
In an ASCX, I have a Literal control into which I inject a
at runtime.
litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID);
This works great as long as the contains just...
|
by: =?Utf-8?B?Y2F0aGFyaW51cyB2YW4gZGVyIHdlcmY=?= |
last post by:
Hello,
I have build a website with approximately 30 html-pages.
When I search this website in Google, I see the index.html or home.html on
this website, but also other html-pages on this...
|
by: paulie |
last post by:
Hi,
I have been experiencing an issue when trying to use AJAX to reload a DIV area
using a timer of 2000ms, which contains a html page with another DIV and javascript.
Scenario
-------------...
|
by: lxyone |
last post by:
Using a flat file containing table names, fields, values whats the
best way of creating html pages?
I want control over the html pages ie
1. layout
2. what data to show
3. what controls to...
|
by: Santander |
last post by:
how to decode HTML pages encoded like this:
http://www.long2consulting.com/seeinaction2008/Simplicity_Beach_table/index.htm
Is there script that will do this automatically and generate normal fully...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |