请各位老师指导下:当前页面中如何在输入电话号码之后,点击查询按钮,然后将查询到的结果显示在当前页面查询按钮之后呢?
此主题相关图片如下:123.png
当前页面代码如下:
Dim e As RequestEventArgs = args(0)
Dim wb As New weui
wb.AppendHTML("<link rel='stylesheet' href='./weui/exweui.css'/>",True)
wb.AddForm("","form1","shaixuan.htm")
Dim ip As object
With wb.AddInputGroup("form1","ipg1","资料查询")
ip = .AddInput("bh","联系电话","text")
End With
With wb.AddButtonGroup("form1","btg1",False)
.Add("btn1", "查询", "submit")
.Add("btn3", "退出", "button","logon.htm")
End With
e.WriteString(wb.Build)
Dim bh As String '联系电话
Dim dr As DataRow '当前数据
Dim name As String = e.Cookies("username") '用户名
Dim cmd As new S QLCommand
cmd.Connection Name = "智慧党建"
cmd.Comm andText= "sel ect 线索描述,举报时间,备注 as 处理情况 From 线索举报 where 联系电话='" & bh & "'"
Dim dt As DataTable = cmd.Execu teReader
If e.PostValues.ContainsKey("bh") Then '如果包含编号,说明是点击了查询或者审核按钮
bh = e.PostValues("bh")
MessageBox.Show(bh)
dr = dt.sqlFind("联系电话='" & bh & "'") '查询是否有此编号数据
If dr IsNot Nothing Then '如果有意见数据,说明是点击审核按钮进来的
MessageBox.Show("有数据")
Else
MessageBox.Show("没有数据")
End If
End If