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:

Troubleshooting
Research
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
CSSASP.NET
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">
            <HeaderTemplate>
            </HeaderTemplate>
            <ItemTemplate>
                <asp:Panel ID="Container" runat="server">
                    <table width="100%" class="profile-box">
                        <tr>
                            <td>
                                <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" />
                                        </asp:HyperLink>
                                    </div>
                                    <div class="info">
                                        <span class="srusername">
                                            <%#DataBinder.Eval(Container,"DataItem.UserName")%></span>
                                        <br />
                                        <%#DataBinder.Eval(Container,"DataItem.Age")%>&nbsp;Years Old&nbsp;<%#DataBinder.Eval(Container,"DataItem.GenderName")%>
                                        -&nbsp;<%#DataBinder.Eval(Container,"DataItem.ZodiacName")%>&nbsp;
                                        <asp:Image ID="imgZodiacSign" ImageUrl='<%# GetUrl(Eval("ZodiacName")) %>' Style="vertical-align: middle"
                                            runat="server" />
                                        <br />
                                        <%#DataBinder.Eval(Container,"DataItem.HeightName")%>&nbsp;-&nbsp;<%#DataBinder.Eval(Container,"DataItem.BodyTypeName")%>
                                        <br />
                                        <%#DataBinder.Eval(Container,"DataItem.HairColorName")%>&nbsp;Hair,&nbsp;<%#DataBinder.Eval(Container,"DataItem.EyeColorName")%>&nbsp;Eyes<br />
                                        <%#DataBinder.Eval(Container,"DataItem.EthnicityName")%>
                                        <br />
                                        <%#DataBinder.Eval(Container,"DataItem.GenderName")%>&nbsp;Seeking&nbsp;
                                        <%#DataBinder.Eval(Container,"DataItem.SeekingName")%>
                                        <br />
                                        <div class="loc">
                                            <%#DataBinder.Eval(Container,"DataItem.CityName")%>,&nbsp;<%#DataBinder.Eval(Container,"DataItem.RegionName")%>,
                                            &nbsp;<%#DataBinder.Eval(Container,"DataItem.Country")%>
                                        </div>
                                    </div>
                                    <div class="detail">
                                        <span>
                                            <%#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.
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <asp:HiddenField ID="hiddenImgID" runat="server" Value='<%#DataBinder.Eval(Container,"DataItem.ProfileID") %>' />
                    </table>
                </asp:Panel>
            </ItemTemplate>
            <FooterTemplate>
            </FooterTemplate>
            <SeparatorTemplate>
                <br />
            </SeparatorTemplate>
        </asp:Repeater>
ASKER CERTIFIED SOLUTION
Avatar of ph_o_enix
ph_o_enix

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

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