问题描述
我正在开发一个Windows窗体用户控件在Visual Studio 2005,是一个文件上传控制,只使用2个元素。
I am developing a windows forms user control in Visual Studio 2005. It is a file upload control and uses only 2 elements.
- 一个用于显示opnefiledialog按钮
- 一个OpenFileDialog
我添加了一个对象标签的HTML页面的类ID和所有。
I have added an object tag to the html page with the class id and all that.
<OBJECT id="myControl1" name="myControl1" classid="ActiveXUploadFile.dll#ActiveXUploadFile.FileUpload" width=288 height=300></OBJECT>
该命名空间是ActiveXUploadFile和类名是文件上传
The namespace is ActiveXUploadFile and class name is FileUpload.
但是控制未在网页中显示。
But the control is not displayed in the web page.
时有什么更为此做些什么呢?
Is there anything more to be done for this?
感谢
推荐答案
为classid属性的完整URL
Provide the complete url for the classid attribute
例如:
CLASSID =HTTP://localhost/FirstServiceTestForm.dll#TestForm.myControl
ex:classid="http://localhost/FirstServiceTestForm.dll#TestForm.myControl"
这篇关于嵌入一个窗口步骤形成的用户控制网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!