protected void GridView1_OnDataBound(object sender, GridViewRowEventArgs e) { string imglac; if (e.Row.RowType == DataControlRowType.DataRow) { imglac = e.Row.Cells[0].Text; (e.Row.Cells[1].FindControl("Image") as Image).ImageUrl = "~/upload/images/" + imglac; } } protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e) { GridView1.PageIndex = e.NewPageIndex; this.GetData(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)