在.NET中使用datalist选框标记 [英] marquee tag using datalist in asp .net

查看:58
本文介绍了在.NET中使用datalist选框标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试显示一些滚动文本.我想做的是:

1.我正在使用选取框,其中使用了datalist标签或其他任何datacontrol(即选取框内的datalist).

2.我正在尝试显示一个人的:图片,姓名,位置:,将从数据库中获取.并将其绑定到数据列表.我希望将其视为滚动文本.



I am trying to show some scrolling text. What I am trying to do is :

1. I am using a marquee, in it I have used datalist tag or else any other datacontrol (i.e. datalist inside marquee).

2. I am trying to display : Picture, name, location : of a person , which will be fetched from the database. and this will be binded to the datalist. And I hope to see this as a scrolling text.

Is it pratically possible, if so then How??

推荐答案

是的,您可以在字幕标记内使用数据列表/重复器
Yes,You can use datalist/Repeater inside marquee tag
<marquee scrollamount="1" scrolldelay="1" onmouseover="this.stop()"
                   onmouseout="this.start()" direction="left"
                   style="margin-top: 0px; margin-left: 6px;" class="style41">

  <asp:repeater id="Repeater1" runat="server" xmlns:asp="#unknown">
  <itemtemplate>
  <img src="Image/images.jpeg" alt="" />
  <asp:label id="Label1" runat="server" text="<%#Eval("name")%>" font-italic="true" font-size="11px" forecolor="#FF6666"></asp:label>
  </itemtemplate>
  </asp:repeater>


请参阅此
http://forums.asp.net/t/1292423.aspx/1 [ ^ ]
http://chandradev819.wordpress.com/2010/08 /23/how-to-rotate-datalist-and-repeater-control/ [
refer this
http://forums.asp.net/t/1292423.aspx/1[^]
http://chandradev819.wordpress.com/2010/08/23/how-to-rotate-datalist-and-repeater-control/[^]


<字幕scrollamount =" 2"scrolldelay =" 65"height ="550" onmouseover ="this.stop()" onmouseout ="this.start()" direction ="Up" behavior ="ALTERNATE" loop ="100"
< asp:标签ID ="lblme" runat =服务器" Text =''<%Eval("Name")%>''></asp:Label>
</marquee>
<marquee scrollamount="2" scrolldelay="65" height="550" onmouseover="this.stop()" onmouseout="this.start()" direction="Up"behavior="ALTERNATE" loop="100"
<asp:Label ID="lblme" runat="server" Text=''<%Eval("Name")%>''></asp:Label>
</marquee>


这篇关于在.NET中使用datalist选框标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆