Click here to Skip to main content
15,917,060 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
ASP.NET
html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function (e) {
        e.preventDefault();
            $("#lbl").fadeIn('slow');
            });


    </script>
</head>

<body>
    <form id="form1" runat="server">
    <div>
    <asp:Repeater runat="server" ID="repeater1">
    <ItemTemplate>

    <asp:Label runat="server" ID="lbl"  Text='<%#Eval("ename") %>'></asp:Label>
    <br />
    </ItemTemplate>
    </asp:Repeater>
        <asp:Button ID="Button1" runat="server" Text="Button" />
    </div>
    </form>
</body>
</html>
Posted
Updated 20-Oct-13 23:01pm
v2
Comments
Thanks7872 21-Oct-13 5:14am    
Don't write whole question in Title box. Its not meant for that.

1 solution

Try this code:

JavaScript
<script type="text/javascript">
$(document).ready(function (e) {
$(".AnimatedLabel").each(function (i) {
$(this).delay(i * 500).fadeIn();//can be replaced with $(this).delay(500).fadeIn();
});
});
</script>

CSS
<style type="text/css">
.AnimatedLabel
{
display: none;
}
</style>


ASP.NET
<asp:repeater runat="server" id="repeater1">
<itemtemplate>
<asp:label runat="server" id="lbl" text="<%#Eval("ename") %>" cssclass="AnimatedLabel"></asp:label>
<br />
</itemtemplate>
</asp:repeater>
 
Share this answer
 
v3
Comments
Member 10199143 23-Oct-13 4:41am    
thank you very much zafar
Zafar Sultan 23-Oct-13 5:23am    
Welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900