<asp:TemplateField HeaderText="Company Logo"> <ItemTemplate> <asp:Image ID="clogo" runat="server" ImageUrl='<%#Bind("clogo") %>' /> </ItemTemplate> </asp:TemplateField>
public void load_grid() { SqlConnection cn = new SqlConnection(ConfigurationManager.AppSettings["constring"].ToString()); SqlCommand cmd = new SqlCommand("select * from tbl_company1 where cstatus='Active'", cn); SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); da.Fill(ds); grdviewcompany.DataSource = ds; grdviewcompany.DataBind(); cn.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)