要给CRM加一个功能,这个功能比较特殊要用C#来完成,大概想写成一个工具栏有几个小按钮.CRM是B/S结构的,我想能不能在C#中写一个像在Delphi或其它软件中的Activex的东西,在HTML合适的地方嵌入这个东西,只要在Html中看到C#写的这个东西,并能执行即可。实现一些特殊的功能 。,这些天才开始学C#,好像还没有找到感觉。请大家 给个思路.谢谢!
解决方案 »
- C# 画图程序重绘问题(网上说的让我头大,求程序)
- C# 简单正则表达式分割的一个问题
- .net类库中有没将两个字符串数组合体为一个字符串数组的方法
- 请问怎么设置子窗体的显示位置?
- 求助:一段7行代码
- 新手小弟,请各位大哥推荐基本C#,.NET的书
- 请教在c# winform里如何实现更换皮肤功能?
- 我想实现点击一个按钮后,鼠标处于等待状态,在一个事件处理完毕后,鼠标恢复原先状态,该怎么做??请大家指教。(是在Web中,不在Windows
- 怎样判断dataset里面有没有记录集?
- 有那位大哥知道怎么让有两个窗体时只能点击其中一个?
- .net 里面如何动态改变图片、按钮的位置???
- 文件传输问题!!大家近来看看,帮帮小弟
// AxComp.cs
using System;
using System.Runtime.InteropServices;
namespace AXComponent
{public interface AXTest
{
string callMe();
}[ClassInterface(ClassInterfaceType.AutoDual)]
public class AxComp :AXTest
{
public string callMe()
{
return "My dog has no nose, how does it smell?";
}
}
}Compile this using:
csc /t:library AxComp.csRegister and generate Typelib with:
regasm AxComp.dll /tlb:AxCompNet.dll /codebaseTry the control: ( testControl.htm )
<html>
<head>
<script language="javascript">
var obNewAXComponent = new ActiveXObject("AXComponent.AXComp");
alert(obNewAXComponent.callMe());
</script>
</head>
<body>
<h1>Awful!</h1>
</body>
</html>参考
http://www.cnblogs.com/homer