if (e.Row.RowType == DataControlRowType.DataRow)
{
Label b2 = (Label)e.Row.FindControl("lblBody");
if (b2.Text.Length > 50)
{
b2.Text = b2.Text.Substring(0, 30);
b2.Text = b2.Text + "......";
}
}
{
Label b2 = (Label)e.Row.FindControl("lblBody");
if (b2.Text.Length > 50)
{
b2.Text = b2.Text.Substring(0, 30);
b2.Text = b2.Text + "......";
}
}
No comments:
Post a Comment