以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- Exception has been thrown by the target of an invocation. (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=153157) |
-- 作者:hailong -- 发布时间:2020/8/2 11:10:00 -- Exception has been thrown by the target of an invocation. 请问老师:使用内部函数打开网页时出现提示“.NET Framework 版本:4.0.30319.42000 如何处理。
DateTable如下: 表1:可用车辆 提供车辆列表数据(通过点击区域列出网点,再选择网点列出车牌同时也列出此车牌对应的车架号) 表2:订单 接收并保存订单数据
代码如下:
Dim e As RequestEventArgs = args(0) Case "handle.htm" |
-- 作者:有点蓝 -- 发布时间:2020/8/2 11:41:00 -- 看那一句代码出错,调试技巧:http://www.foxtable.com/webhelp/scr/1485.htm With .AddSelect("dq","地区","|" & DataTables("可用车辆").GetComboListString("地区
")) 有个多余空格 Case "getProducts.htm" Dim vals As String If e.PostValues.Count = 1 Then msgbox(e.PostValues("dq")) ‘看看传入什么值 vals = "|" & DataTables("可用车辆").GetComboListString("网点","地区=\'" & e.PostValues("dq") & "\'") ElseIf e.PostValues.Count = 2 Then Dim Filter As String = "地区=\'" & e.PostValues("dq") & "\' And 网点=\'" & e.PostValues("wd") & "\'" msgbox(Filter ) ‘看看传入什么值 vals = "|" & DataTables("可用车辆").GetComboListString("车牌", Filter) ElseIf e.PostValues.Count = 3 Then Dim Filter1 As String = "网点=\'" & e.PostValues("wd") & "\' And 车牌=\'" & e.PostValues("cp") & "\'" msgbox(Filter1 ) ‘看看传入什么值
vals = "|" & DataTables("可用车辆").GetComboListString("车架", Filter1) End If e.WriteString(vals) |