<asp:GridView ID="gvstudents" runat="server" EmptyDataText="No Data">
<Columns>
<asp:BoundField HeaderText="Id" DataField="Id" />
<asp:BoundField HeaderText="Name" DataField="Name" />
<asp:BoundField HeaderText="Mobile" DataField="Mobile" />
<asp:BoundField HeaderText="Email" DataField="Email" />
<asp:TemplateField HeaderText="Image">
<ItemTemplate>
<asp:Image ID="Image2" runat="server" ImageUrl='<%#"../Inc/Images/Students/"+Eval("image")%>'
Height="40px" Width="40px" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<Columns>
<asp:BoundField HeaderText="Id" DataField="Id" />
<asp:BoundField HeaderText="Name" DataField="Name" />
<asp:BoundField HeaderText="Mobile" DataField="Mobile" />
<asp:BoundField HeaderText="Email" DataField="Email" />
<asp:TemplateField HeaderText="Image">
<ItemTemplate>
<asp:Image ID="Image2" runat="server" ImageUrl='<%#"../Inc/Images/Students/"+Eval("image")%>'
Height="40px" Width="40px" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
No comments:
Post a Comment