Click here to Skip to main content
15,891,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hiii,

i have write this code i want an ellipsis but its not perfectly working..

XML
<div class="img-header" style="text-align: center; text-overflow:ellipsis; overflow:hidden; white-space:nowrap; -o-text-overflow:ellipsis;">
                                            <asp:LinkButton ID="lblTitle" runat="server" Text='<%# Eval("CourseBriefTitle") %>' CommandArgument='<%# Eval("CourseID") %>' CommandName="CourseDetail" ToolTip='<%# Eval("CourseName") %>' />
                                        </div>


and code-behind is:
C#
protected void RepCourseNavigation_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
            {
                System.Data.DataRowView courses = (System.Data.DataRowView)e.Item.DataItem;
                if (courses != null)
                {
                    Button lnkviewmore = (Button)e.Item.FindControl("lnkviewmore");
                    lnkviewmore.Text = Res.GetValue(pageKey + "-homeportlet1-viewmore", "View More");
                }
            }
}

show me correct path or another way to solve this problem.
Posted
Updated 9-Mar-15 19:12pm
v3
Comments
Rajesh waran 10-Mar-15 1:18am    
Stop reposting.
vatsaldesai 10-Mar-15 1:31am    
you have re posted it. it shows your name.
Rajesh waran 10-Mar-15 1:34am    
I have edited your question, not posted it again.
vatsaldesai 10-Mar-15 1:46am    
so just why you have leave comment stop reposting and plz give proper comments.
Kornfeld Eliyahu Peter 10-Mar-15 3:25am    
Please consider you behavior! It will be extremely hard to get any useful answer/comment with your attitude toward the site!

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