Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

mouseover repeater not working.

Avatar of omegalove
omegalove asked on
7 Comments1 Solution380 ViewsLast Modified:
       protected void rptList_ItemDataBound(object sender, RepeaterItemEventArgs e)

            // make sure this is an item in the data list (not header etc.)
            if ((e.Item.ItemType == ListItemType.Item) ||
                (e.Item.ItemType == ListItemType.AlternatingItem)) // Get Primary Image
                //Panel pnl = (Panel)e.Item.FindControl("imageBack");
                //if (pnl != null)
                Panel Container = e.Item.FindControl("Container") as Panel;
                Container.Attributes["onmouseover"] = "this.style.backgroundColor='Silver'";
                Container.Attributes["onmouseout"] = "this.style.backgroundColor='LightBlue'";

<asp:Repeater ID="rptList" runat="server" OnItemDataBound="rptList_ItemDataBound">
                <asp:Panel ID="Container" runat="server">
                    <table width="100%" class="profile-box">
                                <div class="profile-item">
                                    <div class="pic">
                                        <asp:HyperLink ID="HLMainPicID" runat="server" NavigateUrl='<%#"~/Secure/ViewProfile.aspx?UserName="+Eval("UserName") %>'>
                                            <asp:Image ID="MainPicID" Style="vertical-align: middle" runat="server" />
                                    <div class="info">
                                        <span class="srusername">
                                        <br />
                                        <%#DataBinder.Eval(Container,"DataItem.Age")%>&nbsp;Years Old&nbsp;<%#DataBinder.Eval(Container,"DataItem.GenderName")%>
                                        <asp:Image ID="imgZodiacSign" ImageUrl='<%# GetUrl(Eval("ZodiacName")) %>' Style="vertical-align: middle"
                                            runat="server" />
                                        <br />
                                        <br />
                                        <%#DataBinder.Eval(Container,"DataItem.HairColorName")%>&nbsp;Hair,&nbsp;<%#DataBinder.Eval(Container,"DataItem.EyeColorName")%>&nbsp;Eyes<br />
                                        <br />
                                        <br />
                                        <div class="loc">
                                    <div class="detail">
                                            <%#DataBinder.Eval(Container,"DataItem.HeadLine")%></span>I really dont know
                                        what to say, so here it goes. i'm a loner, im open minded,and im a smartass, plus
                                        sometimes im 2 honest and blunt.
                        <asp:HiddenField ID="hiddenImgID" runat="server" Value='<%#DataBinder.Eval(Container,"DataItem.ProfileID") %>' />
                <br />
Avatar of ph_o_enix

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answers