如像aspk 的这样内容,这样整个table的样子,边框可以都很方便的定义,如果用asp.net的data中的控件,感觉在页面的美观是容易修改方便不太方便,asp.net中没有类似的其它方法呢?
<table width="143" border="0" align="center" cellpadding="0" cellspacing="4">
<%
set rs=conn.execute("select top 2 p_image,id from product where istop=true order by id desc")
if not (rs.eof or rs.bof) then
do while not rs.eof
%>
<tr>
<td width="135">
<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#D09804">
<tr>
<td bgcolor="#FBBB11" align="center"><a href="proshow_detail.asp?id=<%=rs(1)%>"><img src="<%=rs(0)%>" width="110" height="93" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<%
rs.movenext
loop
end if
rs.close
set rs=nothing
%>
</table>
<table width="143" border="0" align="center" cellpadding="0" cellspacing="4">
<%
set rs=conn.execute("select top 2 p_image,id from product where istop=true order by id desc")
if not (rs.eof or rs.bof) then
do while not rs.eof
%>
<tr>
<td width="135">
<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#D09804">
<tr>
<td bgcolor="#FBBB11" align="center"><a href="proshow_detail.asp?id=<%=rs(1)%>"><img src="<%=rs(0)%>" width="110" height="93" border="0"></a></td>
</tr>
</table>
</td>
</tr>
<%
rs.movenext
loop
end if
rs.close
set rs=nothing
%>
</table>
解决方案 »
- FileUpload实现上传本地能上传放到外网就上传不了。为什么 急。。
- 如何读取压缩文件里的图片?
- img.src = "SChart.aspx?now="+ now +"sqlWhere ="+encodeURIComponent(_sqlWhere);
- 关于gridview绑定2个SQL数据表的问题?
- [討論]關於Response.flush()與Response.Redirect的問題﹔
- 求考试系统
- 求救!!水晶报表怎么分页啊?
- 买了《ASP.NET入门经典--C#编程篇》书!大家顺便谈谈。。。
- 关于如何用C#在Asp.net中实现打开新网页而不关闭当前页的问题
- 网上投票,更新不了,求助
- 请问,怎么让freetextbox禁止拖放啊?
- 怎样使用wsdl格式的文件?
还是研究研究Repeater DataList DataGrid等的模板列吧.
一是用控件,这个比较初级,有提交动作以后,刷新网页就有问题了;二是用模板,好处是在不修改程序的情况下能轻松修改美工,如果用了DIV+CSS更佳.典型例子:《拓文ASP.NET网站内容管理系统》,《非常论坛》