monika mangal

monika mangal

  • NA
  • 5
  • 1.6k

How to give marquee to a hyperlink inside Repeater control?

Feb 1 2018 12:52 AM
I want to show some scrolling(marquee) link in my Website form to display data I am using repeater control.but when i am trying to give marquee to the repeater it doesn't give me output How I give marquee Please help. My code:
 
<table id ="Head_Meeting"><tr>
<td style="font-size: large; font-weight: bold; font-family: Arial, Helvetica, sans-serif; text-transform: capitalize; color: white; ">
&nbsp&nbsp<i class="fas fa-calendar-alt" style="font-size:25px; color:white"></i>&nbsp Upcoming Meetings</td>
</tr></table>
<br />
<div id = "Meeting_Event" padding-left ="5px" padding-right = "5px">
<marquee id="ml" style="text-align: center" direction="up" width="200px" height="500px"
scrolldelay="20" scrollamount="1">
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" class ="hyperlink" Text = '<%# Eval("Event") %>' href = "home.aspx" runat="server" /><br />
</ItemTemplate>
<SeparatorTemplate><hr /></SeparatorTemplate>
</asp:Repeater></marquee></div>
</div>
 
I tried all of the ways when I gives inside ItemTemplate then it scrolls but only first link (first link stored in database column only not another link.) and when I gives in Repeater or outside of ItemTemplate then it gives syntax error and when I gives outside of error then it It hardcoded the reapercontrol line in design.Please help how can i do?

Answers (1)