473,507 Members | 2,430 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NET from HTML Page

60 New Member
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.
Dec 21 '07 #1
10 1567
kenobewan
4,871 Recognized Expert Specialist
I believe one might be to convert the image to binary data, store this in the database and then compare. HTH.
Dec 21 '07 #2
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
Dec 21 '07 #3
alan75
60 New Member
i got this from a tutorial:

Expand|Select|Wrap|Line Numbers
  1. Public Interface AxMyControl
  2.     Property UserText() As String
  3. End Interface
  4.  
  5. Public Class myControl
  6.     Inherits System.Windows.Forms.UserControl, AxMyControl
  7.     Private mStr_UserText As String
  8.  
  9.     Public Property UserText() As String
  10.         Get
  11.             Return mStr_UserText
  12.         End Get
  13.         Set(ByVal Value As String)
  14.             mStr_UserText = Value
  15.             txtUserText.Text = Value 'Update the text box control value also.
  16.         End Set
  17.     End Property
  18. End Class
  19.  
and the HTML:
Expand|Select|Wrap|Line Numbers
  1. <html>
  2.     <body color=white>
  3.         <hr> 
  4.         <font face=arial size=1>
  5.         <OBJECT id="myControl1" name="myControl1" classid="ActiveXDotNet.dll#ActiveXDotNet.myControl" width=288 height=72>
  6.         </OBJECT>
  7.         </font> 
  8.         <form name="frm" id="frm">
  9.             <input type="text" name="txt" value="enter text here">
  10.             <input type=button value="Click me" onClick="doScript();">
  11.         </form>
  12.         <hr>
  13.     </body> 
  14.     <script language="javascript">
  15.     function doScript()
  16.     {
  17.         myControl1.UserText = frm.txt.value;
  18.     }
  19.     </script>
  20. </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.
Dec 21 '07 #4
Frinavale
9,735 Recognized Expert Moderator Expert
i got this from a tutorial:

Expand|Select|Wrap|Line Numbers
  1. Public Interface AxMyControl
  2.     Property UserText() As String
  3. End Interface
  4.  
  5. Public Class myControl
  6.     Inherits System.Windows.Forms.UserControl, AxMyControl
  7.     Private mStr_UserText As String
  8.  
  9.     Public Property UserText() As String
  10.         Get
  11.             Return mStr_UserText
  12.         End Get
  13.         Set(ByVal Value As String)
  14.             mStr_UserText = Value
  15.             txtUserText.Text = Value 'Update the text box control value also.
  16.         End Set
  17.     End Property
  18. End Class
  19.  
and the HTML:
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <body color=white>
  3. <hr> 
  4. <font face=arial size=1>
  5. <OBJECT id="myControl1" name="myControl1" classid="ActiveXDotNet.dll#ActiveXDotNet.myControl" width=288 height=72>
  6. </OBJECT>
  7. </font> 
  8. <form name="frm" id="frm">
  9. <input type="text" name="txt" value="enter text here"><input type=button value="Click me" onClick="doScript();">
  10. </form>
  11. <hr>
  12. </body> 
  13. <script language="javascript">
  14. function doScript()
  15. {
  16. myControl1.UserText = frm.txt.value;
  17. }
  18. </script>
  19. </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:
Expand|Select|Wrap|Line Numbers
  1. 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
Dec 21 '07 #5
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:
Expand|Select|Wrap|Line Numbers
  1. public partial class myControl : UserControl, AxMyControl
  2.  

I'm not sure what the syntax in VBNET is (I used that same tutorial, but I use C#)
Dec 21 '07 #6
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:
Expand|Select|Wrap|Line Numbers
  1. public partial class myControl : UserControl, AxMyControl
  2.  

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...
Dec 21 '07 #7
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
Dec 21 '07 #8
alan75
60 New Member
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.
Dec 22 '07 #9
alan75
60 New Member
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.
Dec 22 '07 #10
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?
Dec 24 '07 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2206
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...
2
2311
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...
1
3458
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. ...
2
8374
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...
3
1513
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...
20
5594
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...
17
2500
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...
10
3427
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 -------------...
15
5238
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...
42
8861
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...
0
7223
marktang
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,...
0
7319
Oralloy
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,...
0
7376
jinu1996
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...
1
7031
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...
0
7485
tracyyun
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...
1
5042
isladogs
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...
0
3191
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...
0
1542
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 ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.