На странице aspx вы можете напрямую принимать строковую часть, как показано ниже:
<%# Convert.ToString(Eval("Description")).Substring(0, 50) %>
"ИЛИ"
На странице aspx и создайте событие ItemDataBound для ListView
<asp:Label ID="lblDescription" runat="server" Text=""></asp:Label>
В коде позади создайте ItemDataBound
protected void lvData_ItemDataBound(object sender, ListViewItemEventArgs e)
{
if (e.Item.ItemType == ListViewItemType.DataItem)
{
Blog blg = (Blog)e.Item.DataItem;
Label lblDescription = (Label)e.Item.FindControl("lblDescription");
lblDescription.Text = blg.Description.Substring(0, 50);
}
}
Чтобы избавиться от тегов HTML, смотрите здесь: http://www.dotnetperls.com/remove-html-tags