用 response.write输出
Response.Write("<table border='1' align='center'>");
Response.Write("<tr><td colspan='7'align='center'><B>"+"进仓编号为 "+username+" 的详细信息</B></td></tr>");
Response.Write("<tr><th>PO</th><th>ITEM</th><th>规格</th><th>数量</th><th>总件数</th><th>体积</th><th>重量</th></tr>");
while (reader.Read())
{
Response.Write("<tr>");
Response.Write("<td align='center' height=30>" + reader["PO"].ToString() + "</td>");
Response.Write("<td align='center'>" + reader["ITEM"].ToString() + "</td>");
Response.Write("<td align='center'>" + reader["长"].ToString() + "*" + reader["宽"].ToString() + "*" + reader["高"].ToString() + "(cm)" + "</td>");
Response.Write("<td align='center'>" + reader["数量"].ToString() + "</td>");
Response.Write("<td align='center'>" + reader["数量"].ToString() + "(件)"+"</td>");
Response.Write("<td align='center'>" + float.Parse(reader["总体积"].ToString()) + "(M3)" + "</td>");
Response.Write("<td align='center'>" + float.Parse(reader["总重量"].ToString()) + "(T)" + "</td>");
Response.Write("</tr>");
}
Response.Write("</table>");