以下是asp 代码,可以实现。
不知道asp.net代码如何写啊!<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="778" height="35" background="images/daohang.gif">
<tr>
<td><div align="right">
<table border="0" cellpadding="0" cellspacing="0" height="35">
<tr>
<td>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="13" height="35">
<tr>
<td>
<img border="0" src="images/Gaobei_skin/dhhead.gif" width="13" height="35"></td>
</tr>
</table>
</div>
</td>
<%
Dim TopSortSql,RsTopSort,daohang,hide
TopSortSql="select * from Sort where (B_id=0 or daohang<>'') and hide<>true order by s_order"
Set RsTopSort=conn.execute (TopSortSql)
With RsTopSort
if .eof and .bof then
Response.write "<td align='center' background='images/Gaobei_skin/dhmain.gif'>没有栏目</td>"
else
do while not .eof
'==================
if RsTopSort(trim("daohang"))<>"" then
daohang=RsTopsort("daohang")
else
daohang=" Sort.asp?SortID="&RsTopSort("ID")&" "
end if
'==================
response.write "<td>"
response.write "<div align=right>"
response.write "<table border=0 cellpadding=0 cellspacing=0 height=35 background='images/Gaobei_skin/dhmain.gif'>"
response.write "<tr>"
response.write "<td style='FILTER: DropShadow(Color=#ffffff, OffX=1, OffY=1, Positive=1); PADDING-TOP: 6px'>"
response.write "<p align=center>"
if RsTopSort("blank")=true then
response.write " "
Response.Write("<A href='"&daohang&"' target='_blank'><FONT color=#1E1919><span style='letter-spacing: 2px'>" & RsTopSort("Names") & "</span></Font></a>")
response.write " "
else
response.write " "
Response.Write("<A href='"&daohang&"'><FONT color=#1E1919><span style='letter-spacing: 2px'>" & RsTopSort("Names") & "</span></Font></a>")
response.write " "
end if
response.write "</td>"
response.write "<td width=11 background='images/Gaobei_skin/dhzhong.gif'></td>"
response.write "</tr>"
response.write "</table>"
response.write "</div>"
response.write "</td>"
.movenext
loop
end if
.close
End With
Set RsTopSort=Nothing
%> </tr>
</table>
</div></td>
</tr>
</table>
</div>
不知道asp.net代码如何写啊!<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="778" height="35" background="images/daohang.gif">
<tr>
<td><div align="right">
<table border="0" cellpadding="0" cellspacing="0" height="35">
<tr>
<td>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="13" height="35">
<tr>
<td>
<img border="0" src="images/Gaobei_skin/dhhead.gif" width="13" height="35"></td>
</tr>
</table>
</div>
</td>
<%
Dim TopSortSql,RsTopSort,daohang,hide
TopSortSql="select * from Sort where (B_id=0 or daohang<>'') and hide<>true order by s_order"
Set RsTopSort=conn.execute (TopSortSql)
With RsTopSort
if .eof and .bof then
Response.write "<td align='center' background='images/Gaobei_skin/dhmain.gif'>没有栏目</td>"
else
do while not .eof
'==================
if RsTopSort(trim("daohang"))<>"" then
daohang=RsTopsort("daohang")
else
daohang=" Sort.asp?SortID="&RsTopSort("ID")&" "
end if
'==================
response.write "<td>"
response.write "<div align=right>"
response.write "<table border=0 cellpadding=0 cellspacing=0 height=35 background='images/Gaobei_skin/dhmain.gif'>"
response.write "<tr>"
response.write "<td style='FILTER: DropShadow(Color=#ffffff, OffX=1, OffY=1, Positive=1); PADDING-TOP: 6px'>"
response.write "<p align=center>"
if RsTopSort("blank")=true then
response.write " "
Response.Write("<A href='"&daohang&"' target='_blank'><FONT color=#1E1919><span style='letter-spacing: 2px'>" & RsTopSort("Names") & "</span></Font></a>")
response.write " "
else
response.write " "
Response.Write("<A href='"&daohang&"'><FONT color=#1E1919><span style='letter-spacing: 2px'>" & RsTopSort("Names") & "</span></Font></a>")
response.write " "
end if
response.write "</td>"
response.write "<td width=11 background='images/Gaobei_skin/dhzhong.gif'></td>"
response.write "</tr>"
response.write "</table>"
response.write "</div>"
response.write "</td>"
.movenext
loop
end if
.close
End With
Set RsTopSort=Nothing
%> </tr>
</table>
</div></td>
</tr>
</table>
</div>
解决方案 »
- .net gridview控件 问题
- vs2010里面只要切换输入法会死掉怎么解决....高手进急急急
- 双击.dbml文件打开出错!
- 关于VS2005的生成,不是生成静态网页.做过每天10万IP的站来进来!
- datagrid和girdview时间格式化的问题,高手
- asp.net启动时出现...Access is denied
- 在vs.2003中安装tree控件出现困难!!
- 如何获取html 控件listBox的值,它与web控件listBox值获取有哪些不同?
- 程序源码丢失,能更新函数吗?
- 为什么用Path.GetFileName(PostedFile.FileName)不能得到中文文件名?
- ASP.NET开发过程中连接SYBASE数据库问题 ?解决办法
- 如何在Master Page中打开新页?
bind();