易截截图软件、单文件、免安装、纯绿色、仅160KB

[技术散分]ASP调用VB编写的组件

在VB按MVC的构架写组件供ASP调用
BLL层


VB code:

Private Dal As New moonPotato_DAL
Public Sub inSertUser(Model As moonPotato_Model)
Dal.InSertCls (Model)
End Sub




ASP中调用

VB code:

Set BLL = server.CreatoObject("tttt.moonPotato_BLL")
Set Model= server.CreatoObject("tttt.moonPotato_Model")
Model.userName="123"
Model.userLevel="456"
BLL.inSertUser(Model)




这样就提对象不支持该属性或方法,问题指向Dal.InSertCls (Model),在ASP中单独运行Dal.InSertCls没有问题
如果把以上BLL部分直接写在ASP中就正可正常执行,这是什么原恩


问题是Dal.InSertCls (Model)改成这样就Dal.InSertCls Model OK
看来()能不用就不用。VB的语法确实不太规范,中午结贴。



如需要阅读该回复,请登录或注册CSDN!




相关问答:

ASP網頁中取得登陸的用戶名

我的網頁代碼為ASP語言,驗證方式為系統自帶的WINDOW驗證模式.

現在我如果要在ASP代碼中獲取當前的登入人 ......

我想问下,在asp中这段函数什么意思

Function listPages(LinkFile)
  if not (rs.eof and rs.bof) then
gopage=currentpage
totalpage=n
blockPage=Int((gopage-1)/10)*10+1

If LCase(Request.ServerVariables("HT ......

[高分求助]帮忙转下代码(ASP(VBSCRIPT) TO C#)谢谢~!

function mistake(preString)
      Dim texts
      Dim seed
      Dim i,length
      prestring = trim(preString)
    ......

asp导出

利用asp来导出文件到excel,不需要office组件,如何做?谢谢!能提供个参考的网址。。
http://www.mscto.com/aspnet/2009021435632.html

楼上的,我不需要用owc,达到导出到excel的功能,并且能通过代码来自定义 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号