请教高手,Win控件在Web上使用如何设置服务器端口?
我已定义一个windows控件,编译为bsprint.dll.
以下是调用的bsprint.Htm文件
<html><head></head><body>
<object id="print" classid="http:bsprint.dll#bsprint.UserControl1" Width="100%" Height="460"> </object>
</body></html>
当将bsprint.dll和bsprint.htm放在http://localhost/虚拟目录下,一切正常。
而将bsprint.dll和bsprint.htm放在http://localhost:888/虚拟目录下,即无法运行控件,当然也无任何错误提示。
我已花了一个下午的时间,看遍了VS.Net的帮助,以及www.google.com搜索{class="http:},终无所得,没有一篇文章讲到这种情况。只有VS.Net里提到
ApplicationBase默认是80端口,但是没有提到怎么改变这个默认端口。
并且有些文章将到要将虚拟目录的执行权限设定为纯脚本。然而也没作用。
帮帮我吧,各位兄弟。