Click here to Skip to main content
15,882,114 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I am facing an issue while trying to embed a Windows User Control in an ASP.Net MVC4 application.

After having done some search on the net, I found that in HTML5, classid attribute is no longer used with <Object> element, instead data and type attrbutes are to be used. So, I am using the following statement in an cshtml file to render the Windows Control -

HTML
<object id="obj2" data="http:TestModule.dll#TestModule.uctForm" type="application/x-msdownload" height ="300" width="400" >


However, upon viewing in browser, all I can see is a blank frame.

Please also note that I have tested the same successfully in an ASP.Net Web form.

Any help will be appreciated.

Thanks in advance.

Gitika Khurana
Posted

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