【问题标题】:ActiveX Control in ASP.NETASP.NET 中的 ActiveX 控件
【发布时间】:2012-07-14 21:59:23
【问题描述】:

我在 Windows 项目中有一个 ActiveX 控件。我想将它用于我的 Web 项目。我读了一些关于对象、类 ID、代码库的东西,但它不起作用。请帮帮我

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>WebForm1</title>
</head>
<body>
    <form id="Form2" runat="server">
    <object id="DKroki" height="310" width="300" classid="bin/Interop.KrokiPrj.dll" viewastext>
    </object>
    </form>
</body>
</html>

【问题讨论】:

    标签: c# asp.net activex ocx


    【解决方案1】:

    ActiveX 仅适用于 IE。

    激活 ActiveX 控件:http://msdn.microsoft.com/en-us/library/ms537508%28v=vs.85%29.aspx

    更新: 您可以从VisualJS.NET 中受益,以便为浏览器开发类似桌面的应用程序(触摸兼容)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-30
      • 1970-01-01
      • 2012-07-26
      • 1970-01-01
      • 1970-01-01
      • 2015-04-13
      相关资源
      最近更新 更多