62,243
社区成员




<asp:HyperLink ID="HyperLink1" runat="server" Enabled='<%# Convert.ToBoolean(Eval(".....")) %>'>HyperLink</asp:HyperLink>
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
HyperLink hl = (HyperLink)e.Row.Cells[0].Controls[0];
if (hl.Text.Length > 20)
{
hl.Text = hl.Text.Substring(0, 19) + "...";
}
}
}