2013年1月2日
摘要: protected void GridView_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { if (e.Row.RowState == DataControlRowState.Normal || e.Row.RowState == DataControlRowState.Alternate) { ((LinkButton)e.Row.Cells[4].Controls[0]).Attributes.Add("onclic 阅读全文
posted @ 2013-01-02 19:00 DearBug 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 在GridView中使用ImageField绑定图片,然后加入这句控制图片大小<ControlStyle Height="120px" Width="150px" /><asp:ImageField ShowHeader="True" DataImageUrlField="layout" HeaderText="图"> <ControlStyle Height="120px" Width="150px" /> </ 阅读全文
posted @ 2013-01-02 13:31 DearBug 阅读(3942) 评论(0) 推荐(0) 编辑