nicksbell
asked on
Embedding Winform control in asp.net page
Hi, has anyone managed to successfully embed a Winform control in a browser/asp.net page using .Net v4.0. I have had this working for years in a .Net v1.1 app using the <object> element. I am now trying to upgrade to .Net v4.0 but I can't get the winform control to display. I appreciate that I should really be upgrading the control to something like silverlight but there is a lot of code/functionality and as an interim solution I just want to host the winform control in the asp.net page as I did before.
To get it working in v1.1 I had to assign full trust to the local intranet zone (the web app is running in an intranet) using the .Net configuration wizard. To test that my problem was a security issue I could disable code access security using 'caspol -s off' command. Neither of these exist in .Net v4 so I am a bit stumped.
Any help would be appreciated.
Thanks
To get it working in v1.1 I had to assign full trust to the local intranet zone (the web app is running in an intranet) using the .Net configuration wizard. To test that my problem was a security issue I could disable code access security using 'caspol -s off' command. Neither of these exist in .Net v4 so I am a bit stumped.
Any help would be appreciated.
Thanks
ASKER
I am not sure how you reply helps me. The linked article seems to be about ClientIDs on WebForms. My issue relates to embedding WinForms in a web page.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I now have this working in .Net v3.5 which confirms the problem was v4 not allowing it.
For ur ref http://www.codeproject.com/KB/aspnet/ASP_NET4_0ClientIDFeature.aspx