''
Dim e As RequestEventArgs = args(0)
'Dim sb As New StringBuilder
Dim wb As new weui
Dim lst As List(of DataRow) = DataTables("学生信息").sqlSelect("学校名称= '内江市东兴区田东小学'")
wb.InsertHTML("<!DOCTYPE html>")
wb.InsertHTML("<html>")
wb.InsertHTML("<head>")
wb.InsertHTML("<meta charset='utf-8'>")
wb.InsertHTML("<meta name='viewport' c />")
wb.InsertHTML("<title></title>")
wb.InsertHTML("<script src='../mui/js/mui.js'></script>")
wb.InsertHTML("<link href='../mui/css/mui.css' rel='stylesheet'/>")
wb.InsertHTML("<script Type='text/javascript' charset='utf-8'>mui.init();</script>")
wb.InsertHTML("</head>")
wb.InsertHTML("<body>")
wb.InsertHTML("<header class='mui-bar mui-bar-nav mui-bar-nav-bg'>")
wb.InsertHTML("<a id='icon-menu' class='mui-action-back mui-icon mui-icon-left-nav mui-pull-left'></a>")
wb.InsertHTML("<h1 class='mui-title'>学生信息</h1>")
wb.InsertHTML("</header>")
wb.InsertHTML("<div class='mui-content'>")
wb.InsertHTML("<br>")
wb.InsertHTML("<br>")
wb.InsertHTML("<br>")
messagebox.show("没问题")
Dim nms() As String = {"班级","学生姓名","身份证件号","学籍号","户籍地址","家庭住址","监护人姓名","联系电话","民族","政治面貌","综合素质","邮政编码","户口性质","出生日期","性别","状态","就读方式","是否建档立卡贫困户","健康状况","是否留守"}
Dim cps() As String = {"班级","学生姓名","身份证件号","学籍号","户籍地址","家庭住址","监护人姓名","联系电话","民族","政治面貌","综合素质","邮政编码","户口性质","出生日期","性别","状态","就读方式","是否建档立卡贫困户","健康状况","是否留守"}
messagebox.show("没问题1")
wb.InsertHTML("<div style='width:100%; overflow-x:auto;'>")
wb.InsertHTML("<Table border='1'cellpadding='0' align='center'>")
wb.InsertHTML("<tr>")
For Each cp As String In cps
wb.InsertHTML("<td style='font-size:20px;color:blue;white-space:nowrap;' align='center'>" & cp & "</td>")
Next
wb.InsertHTML("</tr>")
messagebox.show("没问题2")
For r As Integer=0 To lst.Count-1
wb.InsertHTML("<tr>")
For Each nm As String In nms
wb.InsertHTML("<td style='font-size:16px;white-space:nowrap;' align ='center'>" & lst(r)(nm) & "</td>")
Next
messagebox.show(Lst(r)("学生姓名") & "没问题3")
wb.InsertHTML("</tr>")
Next
messagebox.show("没问题4")
wb.InsertHTML("</Table></br></br></br>")
wb.InsertHTML("</div>")
e.WriteString(wb.Build)
'e.Handled = True
我测试了记录少一点的messagebox.show("没问题4")出来了,但页面为空白