asp.net 后台拼接table横向显示
查询出来的datatable用需要横向在前台显示,效果图如下:
想了下,还是直接查询出来后做html拼接成table吧。
string sql ="select to_char(hy_jyrq,'mm.dd') 检验时间,rownum 化验次数,hy_pjz 化验结果 from qlt_hy where hy_jyrq between to_date('"+strBeg+"', 'yyyy-mm-dd') and to_date('"+strEnd+"', 'yyyy;mm-dd') and hy_hylx = '"+strSbxhValue+"' and hy_sbh like '%"+strSbhValue+"%' and hy_bmxh like '%"+strBmxhValue+"%' order by hy_jyrq asc";