Click here to Skip to main content
15,894,896 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi..
I have one project for fingerprint enrollment.
I have web application for adding info about employee and after that one button for finger enrollment on clicking button my windows form gets open and take the finger print of that employee.. now i want that windows form in that web application only.so i created that windows form in user control and added in that web application under object tag.
but it is not displaying my form.. as i m removing code it is displaying me desing but as soon as i add code in it, it disappears.
that windows form have dll's and code for fingerprint enrollment.is that a reason for not displaying that form?? i cant post code here becoz it is a govt project..help me..!!!
Posted
Comments
Sandeep Mewara 6-Jul-12 1:46am    
Who suggested you to embed Windows form in ASP.NET? Any government high official? Tell them, thats not the way technology works.
Sergey Alexandrovich Kryukov 6-Jul-12 3:05am    
I feel like I'm just wasted my time, but I provided a logical explanation of it, please see my answer... :-)
--SA
MAU787 6-Jul-12 4:55am    
nobody has suggested anything..we r just trying to make it simple for user.. and i read those article for windows hosting in web here only...
http://www.codeproject.com/Articles/14276/Using-Windows-Application-on-web
Sandeep Mewara 6-Jul-12 5:10am    
All I can say is you did not picked the right resource to move on.

You should share/discuss what you are trying to do and get possible options to do. Current approach, author himself says it;s for simple things and comments already suggest it has issues + security risk.
No doubt, using object tag is making it act as an activeX which is only IE supported and that too dependant on client browser configuration. look for other option than ActiveX.
MAU787 6-Jul-12 5:16am    
yep.. i m searching for the same from last 2-3 days.but not getting any resource..:(
Tried lot of code but no use.
in Google search all they have is ActiveX and openings exe file with
System.Diagnostics.Process.Start("Notepad.exe");
Is there any solution on it?

1 solution

Anything from System.Windows.Forms is totally inapplicable to the ASP.NET, by the following reason: this is a library for the UI, so this is something totally useless when run on the server part (who well stare at your UI forms on the server part? those machines usually are not event attached to a monitor :-)).

As to the client part, all the UI is played inside the Web browser, which has nothing to do with .NET; and the application should be able to work on nearly any non-trivial graphical Web browser. (Silverlight or Moonlight is the exclusion, and it's based on a plug-in which may or may not be available for a given browser; but anyway, these technologies have nothing to do with Forms, which is purely a desktop library.)

I hope I explained it.

—SA
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 6-Jul-12 3:31am    
Oh yes, I forgot to explain that voting "1" for correct answers will certainly provide a solution for a problem, especially if it makes no sense. :-)
--SA
MAU787 6-Jul-12 5:47am    
I have not voted ur ans as "1"....!!! :D
Sergey Alexandrovich Kryukov 6-Jul-12 11:45am    
Sure. Sorry about this sarcastic note. Of course I could not assume it was you.
But I'm sure this is a final answer. I recommend you to accept it formally (green button). You won't find any legitimate solution with System.Windows.Forms -- they cannot work with Web applications.
--SA
MAU787 6-Jul-12 14:37pm    
Thanx for the reply
Sergey Alexandrovich Kryukov 6-Jul-12 15:53pm    
You are welcome.
Good luck, call again.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900