以下是引用lihe60在2017/3/16 16:29:00的发言:
如何取出来传递给狐表定义的变量。
无语,看你上传的那一个项目啊
Dim e As RequestEventArgs = args(0)
Dim wb As New WeUI
Select Case e.Path
Case "mx"
'获取该页数据
Dim cmd As New SQLCommand
'cmd.C '记得设置数据源名称
If e.GetValues.ContainsKey("key1") Then
Dim key1 As String = e.Values("key1")
Dim key2 As String = e.GetValues("key2")
cmd.CommandText = "Select 第六列,* From {订单} where " & key1 & " = '" & key2 & "'"
Else
cmd.CommandText = "Select 第六列,* From {订单}"
End If
Dim dt As DataTable = cmd.ExecuteReader
'根据此页数据生成网页
With wb.AddTable("","Table1")
.CreateFromDataTable(dt)
End With
e.WriteString(wb.Build)
End Select