开发者

Activex control not display properly in ie

hi i am using activex control in my asp.net application.

I add a reference of dll and write code

object id="vb" name="vbvbnv" classid="Bin/ClassLibrary5.dll#ClassLibrary5.UserControl1"

but when i run it's show开发者_如何学Cs me output like this

http://screencast.com/t/ii87CY99j

in my activex control i use only button but it is not display there


The syntax that you're showing here is not ActiveX but instead what's called a UserControl. These are disabled in IE8 and later.

http://blogs.msdn.com/b/ieinternals/archive/2009/10/09/dotnet-usercontrols-do-not-load-in-ie8-internet-zone.aspx

Generally speaking, you should not write code to run inside IE in .NET languages.


ActiveX is a client-side code, so it needs to be installed on client's machine.

You should pack it as described here: Packaging ActiveX Controls.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜