将多条从数据库中读出的数据绑定在repeater控件中,但不能全部显示,先显示10条,若绑定的数据大于10条时,就开始上下连续滚动.
就像http://www.companycn.com/的客户案例的效果,这在asp.net里怎么实现.
谢谢!!!!
就像http://www.companycn.com/的客户案例的效果,这在asp.net里怎么实现.
谢谢!!!!
解决方案 »
- 谁能给我看看我哪里写错了啊??
- js的简单问题 马上结贴!! 基础问题!!新人求问!!!
- ASP.NET 2个web.config合并问题!!!!!!!
- 关于路径的问题,ASP.NET 里面 ~/ 和 / 的区别
- gridview导入excel问题。
- |M| 怎么用SQL语句删除查询出来的表
- 给介绍几个JS日期控件吧??
- 求助連接數據庫
- 急!急!急!怎么Treeview运行的时候没法树状显示,却是显示一排的节点文字?
- 安装IIS的时候 不能正常安装 显示缺少staxmen.dll
- 这是什么错误啊!为什么会出现这种错误。
- UserInteractive 模式运行的情况下显示有模式对话框或窗体是无效的操作
repeater控件绑定的数据是全部的.
<div align="center">
<script language="JavaScript">
ns4=(document.layers)?true:false
var obj=document.getElementsByName("t1");
if (ns4)
{
document.write("<div name=divOuter>")
document.write("<layer name=divmq onMouseover='Javascript:mvStop()' onMouseout='Javascript:mvUp()'>")
}
else
{
document.write("<marquee behavior=scroll align=top direction=\"up\" scrolldelay=50 scrollamount=1 width=100% height=150truespeed onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\">")
}
</script>
<table class="black12" cellSpacing="0" cellPadding="0" width="100%" border="0">
<asp:repeater id="repeatProduct" Runat="server">
<ItemTemplate>
<tr id="t1">
<td height="25" align="center" valign="top" background="images/index_51.jpg">
<a href='<%# DataBinder.Eval(Container.DataItem, "producturl") %>' target=_blank>
<%# DataBinder.Eval(Container.DataItem, "productname") %></a> </td>
</tr>
</ItemTemplate>
</asp:repeater>
</table>
</div>
</td>
这样显示的结果总是从中间开始出来.又不能连续显示.
如果要先显示10条,若绑定的数据大于10条时,就开始上下连续滚动.