|
Hi All
How I can integrate a finger print demo inside asp.net with C# application?
Also how I can customize my SDK to search and match the fingerprint by C# connecting to SQL server
Plz provide ur help or guidance as u can
Thank u
|
|
|
|
|
a) don't use bold: it's shouting!
b) what have you already tried for yourself?
c) one question at a time.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
To add to that;
- It's a lousy subject line; doesn't tell us anything about your problem.
- You're not urgent to me. Why would it, just because it's included in the subject?
- Don't use text-speak. We're not sms-ing, and you don't pay by the character.
Asma AlShehhi wrote: How I can integrate a finger print demo inside asp.net with C# application?
Depends. Read the documentation that comes with the SDK. Yes, it's called "research".
Asma AlShehhi wrote: Also how I can customize my SDK to search and match the fingerprint by C# connecting to SQL server
By having each known fingerprint known in a table, and executing a query to verify it's authenticity.
|
|
|
|
|
I miss being able to upvote answers like this...have a virtual 5!
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
Please stop yelling at us.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
You are so lucky downvoting is turned off at the moment ...
|
|
|
|
|
I have a c# .net project that has a button on the form. When the button is clicked twice, bad things happen. How do I disable the button?
I've tried disabling my button as follows but it doesn't work.
btn_Program.Enabled = false;
I've searched for this online, but every solution seems to reference asp.net. I don't think I have that, do I? I'm fairly new to c# and visual studio, so I may have it and not know it.
I liked the following discussion, but again, it refers to asp.net.
http://stackoverflow.com/questions/8473261/how-to-disable-a-button-after-1st-click[^]
The example I liked had the following code in it, but when I add it to my form class, it gets a compilation problem for ClientScript and Attributes:
static void DisableButtonDuringPostback(Page page, Button control)
{
StringBuilder sb = new StringBuilder();
sb.Append("this.disabled = true;");
sb.Append(page.ClientScript.GetPostBackEventReference(control, control.ID.ToString()));
sb.Append(";");
control.Attributes.Add("onclick", sb.ToString());
}
It said to add the following to Page_Load
DisableButtonDuringPostback(this.Page, Button3);
Compilation problems:
1. 'System.Windows.Forms.Button' does not contain a definition for id and no extension method id accepting a first argument of type 'System.Windows.Forms.Button' could be found (are you missing a using directive or an assembly reference?)
2. System.Windows.Forms.Button does not contain a definition for Attributes and no extension method Attributes accepting a first argument of type System.Windows.Forms.Button could be found (are you missing a using directive or an assembly reference?)
Any help would be very much appreciated.
|
|
|
|
|
Add a timestamp; if it comes in again, compare the current time to the datestamp you saved earlier. If it is <2 seconds, ignore and cancel execution of the request.
|
|
|
|
|
I ran into some issues with the other idea and now I'm using your idea. Works great! Instead of using the timestamp, though, I set a boolean flag, and reset it when I'm ready for a second click.
modified 30-Nov-12 13:52pm.
|
|
|
|
|
<quote>
btn_Program.Enabled = false;
Are you sure that btn_Program is the correct button to disable?
Since you aren't sure to have started an ASP.NET project, I will assume you have a Windows Forms project instead. That would mean that you have a button click event handling routine somewhere that looks similar to this:
void btn_Program_Click(object sender, EventArgs e)
{
}
To definitely disable the correct button, you can use the sender parameter:
void btn_Program_Click(object sender, EventArgs e)
{
System.Windows.Forms.Button methodStartingControl = sender as System.Windows.Forms.Button;
if(methodStartingControl != null)
{
methodStartingControl.Enabled = false;
}
if(methodStartingControl != null)
{
methodStartingControl.Enabled = true;
}
}
Ciao,
luker
|
|
|
|
|
This seems to be working! Thanks!
|
|
|
|
|
Thank you! I tried the other one first, but this looks good too. For some reason I'm not seeing the ratings thingy, so I'll check back later.
|
|
|
|
|
Hi,
I was wondering if anyone could recommend any good (top) books to learn C# from complete novice. My main (only at the moment ) reason for learning C# is to use it for mathematical modelling, hence a book with a focus on Engineering (preferably) or mathematics will be highly appreciated.
Note:
I have some experince with Java scripting, HTML, CSS...the usual.
No experience with MatLab.
Many Thanks in Advance
|
|
|
|
|
|
We are using http://www.csharp-station.com/Tutorial/CSharp/[^] as guide for a private course in the firm (co-worker teaching). I find it ok to get a fast overview. You might start there while waiting for the books that Richard MacCutchan recommended you.
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
.NET Book Zero[^] is a free downloadable PDF. I recommend it even for experienced programmers converting from other languages.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Thank you. I'll have a look
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I know you asked about C#, but for mathematical problems MatLab is probably what you want...But MatLab is expensive!
So, consider looking at Octave http://www.gnu.org/software/octave/[^] which is a free implementation of a MatLab clone. It's not hard to learn, especally if you're more the mathematical type than the programmer type. (E.g., array indices are 1-based vs. 0-based, full matrix and vector operations, ...)
|
|
|
|
|
Thanks for all the recommendations.
As for MatLab, I have access to it, however I need my code to be integrated into our in house sim software and this will be in C#. I have seen a book for utilizing C# and MatLab together however I assume it is a bit too early to read that book!
If anyone thinks of any other books please do not hesitate to drop a line.
Thank you again.
|
|
|
|
|
Hello all,
I am developing a small utility that performs an action on files. This action may be very much ad-hoc, and so I want to be able to program it apart from the utility. The idea is that the utility loads the ad-hoc assembly when a class in it implements a certain interface, which the utility will call by invoking the interface method on a private reference of it, loaded with Activator.CreateInstance(). The interface is defined in another assembly, referenced by both the utility and the plug-in.
All compiles fine, but I get a run-time exception from down under the .NET hood (i.e. a native Windows error code HRESULT=0x80131047). Debugging info shows that the plug-in assembly is duly found and opened, but the utility could not load it "or one of its dependencies".
All my research up to now tells me to include version and public key info in specifying the plug-in but that would defeat the whole point of this set-up.
Has anybody any idea how I can get this to work ? Thanks for your help.
Michiel Rademakers
|
|
|
|
|
How are you loading the assembly?
It sounds like you might be using Assembly.LoadFile, which does not resolve dependencies. Use Assembly.LoadFrom or Assembly.Load instead.
Alan.
|
|
|
|
|
Your assumption was right.
I have tried Assembly.Load(...) and Assembly.LoadFrom(...) but now the found assembly throws a FileLoadException trying to load the plug-in, basically the same as before. If I catch it my utility ends with all plug-ins marked unusable
Must try some more.
Thanks a lot for your advice.
|
|
|
|
|
Rather than rolling your own mechanism, I'd suggest that you might want to look into MEF[^].
|
|
|
|
|
You are dead right. I will try this one.
Thanks.
|
|
|
|
|
MJL Rademakers wrote: Activator.CreateInstance()
I never use that, here's what I currently use:
namespace PIEBALD.Lib
{
public static partial class LibSys
{
public static System.Reflection.Assembly
DynamicLoad
(
string Filename
)
{
System.Reflection.Assembly result ;
System.IO.FileInfo fil = PIEBALD.Lib.LibFil.GetExpandedFileInfo ( Filename ) ;
try
{
/*\
|*| This is the common way to load an assembly:
|*| result = System.Reflection.Assembly.LoadFrom ( Filename ) ;
|*|
|*| The following is my take on a technique suggested by Sacha Barber:
\*/
result = System.AppDomain.CreateDomain
( System.IO.Path.GetFileNameWithoutExtension ( fil.Name ) ).
Load ( System.IO.File.ReadAllBytes ( fil.FullName ) ) ;
}
catch ( System.Exception err )
{
throw ( new System.InvalidOperationException
(
System.String.Format
(
"Could not load an assembly from file {0}"
,
Filename
)
,
err
) ) ;
}
return ( result ) ;
}
}
public static partial class LibSys
{
public static T
DynamicLoad<T>
(
string Filename
,
string Typename
,
params object[] Parameters
)
{
T result = default(T) ;
System.Reflection.Assembly assm = DynamicLoad ( Filename ) ;
System.Type type = assm.GetType ( Typename ) ;
if ( type == null )
{
throw ( new System.InvalidOperationException
(
System.String.Format
(
"The assembly in file {0} does not contain a public type named {1}"
,
Filename
,
Typename
)
) ) ;
}
if ( !typeof(T).IsAssignableFrom ( type ) )
{
throw ( new System.InvalidOperationException
(
System.String.Format
(
"Type {0} in file {1} does not implement or derive from {2}"
,
type.Name
,
Filename
,
typeof(T).FullName
)
) ) ;
}
System.Reflection.ConstructorInfo cons = type.GetConstructor
(
PIEBALD.Lib.LibSys.GetTypes ( Parameters ).ToArray()
) ;
if ( cons == null )
{
throw ( new System.InvalidOperationException
(
System.String.Format
(
"Type {0} in file {1} does not have the specified constructor"
,
type.Name
,
Filename
)
) ) ;
}
try
{
result = (T) cons.Invoke
(
Parameters
) ;
}
catch ( System.Exception err )
{
throw ( new System.InvalidOperationException
(
System.String.Format
(
"Unable to instantiate a {0}"
,
type.FullName
)
,
err
) ) ;
}
return ( result ) ;
}
}
}
|
|
|
|